staging: fbtft: convert sysfs snprintf to sysfs_emit
authorXuezhi Zhang <zhangxuezhi1@yulong.com>
Sat, 3 Apr 2021 14:07:22 +0000 (14:07 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 5 Apr 2021 10:15:15 +0000 (12:15 +0200)
commitc1d0f8534fb53d1438c3ebcb05ab76c01361c839
tree6dd3af2cc55632db409401ef9d7ad421c23c878f
parent75c9fb830de72a4de81cc8ad06c635f3010a090e
staging: fbtft: convert sysfs snprintf to sysfs_emit

Fix the following coccicheck warning:
drivers/staging/fbtft//fbtft-sysfs.c:202:8-16:
WARNING: use scnprintf or sprintf

Signed-off-by: Xuezhi Zhang <zhangxuezhi1@yulong.com>
Link: https://lore.kernel.org/r/20210403140722.169623-1-llyz108@163.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fbtft-sysfs.c