]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
video: fbdev: omapfb: acx565akm: replace snprintf with sysfs_emit
authorYang Guang <yang.guang5@zte.com.cn>
Tue, 30 Nov 2021 00:06:03 +0000 (08:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 07:08:22 +0000 (09:08 +0200)
commit4f50db5f3631c91884fcec5a0d093a0b7a197abe
tree7788b39f05d3a55b4b1d2d31427ee80e3a000742
parent1d3fb46439ad4e8f0c5739eb33d1875ac9e0f135
video: fbdev: omapfb: acx565akm: replace snprintf with sysfs_emit

[ Upstream commit 24565bc4115961db7ee64fcc7ad2a7437c0d0a49 ]

coccinelle report:
./drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c:
479:9-17: WARNING: use scnprintf or sprintf

Use sysfs_emit instead of scnprintf or sprintf makes more sense.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Yang Guang <yang.guang5@zte.com.cn>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c