]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Input: stmfts - use sysfs_emit() instead of sprintf()
authorPetr Hodina <petr.hodina@protonmail.com>
Mon, 15 Dec 2025 14:30:03 +0000 (15:30 +0100)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 16 Dec 2025 05:57:02 +0000 (21:57 -0800)
commit995186145d682077470e1d4e657548d872602e6a
treee95d2a2086df5de07e2cd6ffadb1236c535fd346
parentf5c3c77b8661bf6b17fa2246e14cdf13ca94e840
Input: stmfts - use sysfs_emit() instead of sprintf()

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

Signed-off-by: Petr Hodina <petr.hodina@protonmail.com>
Signed-off-by: David Heidelberg <david@ixit.cz>
Link: https://patch.msgid.link/20251215-fts-fixes-v1-3-8c1e3a63ebf1@ixit.cz
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/stmfts.c