fbdev: sm501fb: Convert sysfs snprintf to sysfs_emit
authorXuezhi Zhang <zhangxuezhi1@coolpad.com>
Tue, 18 Oct 2022 06:25:48 +0000 (14:25 +0800)
committerHelge Deller <deller@gmx.de>
Tue, 18 Oct 2022 08:22:28 +0000 (10:22 +0200)
commit9750737130dc7b2e4c6f4f33e7e2381e49014299
tree6ce50059bb0d22be553663419630a659345bc65d
parent776d875fd4cbb3884860ea7f63c3958f02b0c80e
fbdev: sm501fb: Convert sysfs snprintf to sysfs_emit

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: Xuezhi Zhang <zhangxuezhi1@coolpad.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/sm501fb.c