Input: touchscreen - use sysfs_emit[_at]() instead of scnprintf()
authorye xingchen <ye.xingchen@zte.com.cn>
Wed, 13 Dec 2023 05:53:40 +0000 (21:53 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 14 Dec 2023 05:26:11 +0000 (21:26 -0800)
commite50389f208daf1d60810e789b8860063e3256693
treeb0dc8c053542e51c53f34c4289375ac207ff88be
parent1864a2006ee1e41960b63ca63aa79fabb690e71b
Input: touchscreen - use sysfs_emit[_at]() 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>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Oliver Graute <oliver.graute@kococonnector.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/atmel_mxt_ts.c
drivers/input/touchscreen/edt-ft5x06.c
drivers/input/touchscreen/hideep.c
drivers/input/touchscreen/hycon-hy46xx.c
drivers/input/touchscreen/ilitek_ts_i2c.c
drivers/input/touchscreen/iqs5xx.c
drivers/input/touchscreen/iqs7211.c
drivers/input/touchscreen/melfas_mip4.c
drivers/input/touchscreen/usbtouchscreen.c
drivers/input/touchscreen/wdt87xx_i2c.c