summaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
authorYang Guang <yang.guang5@zte.com.cn>2021-11-30 08:06:03 +0800
committerHelge Deller <deller@gmx.de>2022-01-29 23:48:41 +0100
commit24565bc4115961db7ee64fcc7ad2a7437c0d0a49 (patch)
tree2193c06d21885cda1e673dfc52e1c0cf2d6f0451 /drivers/video
parent0a786596954a81c293d0419151e7729a1d91a183 (diff)
downloadlinux-stable-24565bc4115961db7ee64fcc7ad2a7437c0d0a49.tar.gz
linux-stable-24565bc4115961db7ee64fcc7ad2a7437c0d0a49.tar.bz2
linux-stable-24565bc4115961db7ee64fcc7ad2a7437c0d0a49.zip
video: fbdev: omapfb: acx565akm: replace snprintf with sysfs_emit
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>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c b/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c
index 8d8b5ff7d43c..3696eb09b69b 100644
--- a/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c
+++ b/drivers/video/fbdev/omap2/omapfb/displays/panel-sony-acx565akm.c
@@ -476,7 +476,7 @@ static ssize_t show_cabc_available_modes(struct device *dev,
int i;
if (!ddata->has_cabc)
- return snprintf(buf, PAGE_SIZE, "%s\n", cabc_modes[0]);
+ return sysfs_emit(buf, "%s\n", cabc_modes[0]);
for (i = 0, len = 0;
len < PAGE_SIZE && i < ARRAY_SIZE(cabc_modes); i++)