mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
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>
This commit is contained in:
parent
53a2088a39
commit
3856562e94
1 changed files with 1 additions and 1 deletions
|
|
@ -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++)
|
||||
|
|
|
|||
Loading…
Reference in a new issue