fbdev: sh_mobile_lcdcfb: use sysfs_emit() to instead of scnprintf()
authorye xingchen <ye.xingchen@zte.com.cn>
Mon, 5 Dec 2022 08:31:39 +0000 (16:31 +0800)
committerHelge Deller <deller@gmx.de>
Wed, 14 Dec 2022 19:01:51 +0000 (20:01 +0100)
commitb20a558d377c73ed1eb1247046a5e16fe41da173
treea55ca701f3b27c792073931a2b963c3c22637a88
parent522d5226eed96a7df6662857500777a74d60d341
fbdev: sh_mobile_lcdcfb: use sysfs_emit() to instead of scnprintf()

Follow the advice of the Documentation/filesystems/sysfs.rst and show()
should only use sysfs_emit() or sysfs_emit_at() when formatting the
value to be returned to user space.

Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/sh_mobile_lcdcfb.c