Input: use sysfs_emit() instead of scnprintf()
authorye xingchen <ye.xingchen@zte.com.cn>
Wed, 13 Dec 2023 06:37:16 +0000 (22:37 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 14 Dec 2023 05:26:11 +0000 (21:26 -0800)
commitd4db8762dc4c364dce89901ed4690588ad310bfc
tree7818ae14a5a20b9c91d18a26c13f26cacc47ee2d
parentf737020d24e47d6e8b893a2fee2b43268a6af629
Input: use sysfs_emit() instead of scnprintf()

Replace calls to scnprintf() in the methods showing device attributes
with sysfs_emit() to simplify the code.

Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Link: https://lore.kernel.org/r/202212021133398847947@zte.com.cn
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input.c