]> www.infradead.org Git - users/jedix/linux-maple.git/commit
HID: hid-logitech: use sysfs_emit_at() instead of scnprintf()
authorTangDongxing <tang.dongxing@zte.com.cn>
Mon, 17 Mar 2025 06:49:03 +0000 (14:49 +0800)
committerJiri Kosina <jkosina@suse.com>
Thu, 24 Apr 2025 09:33:48 +0000 (11:33 +0200)
commitf58470ce6d26eaa4130155281481c4a7d87160ac
tree86192d583181b9970ce5018f9e2cc6d0ac1a27b1
parent5e06802b426baa2d3c2a5d7784a6d4c2a9338c3e
HID: hid-logitech: use sysfs_emit_at() instead of scnprintf()

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: TangDongxing <tang.dongxing@zte.com.cn>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/hid-lg4ff.c