diff options
author | Li Zhijian <lizhijian@fujitsu.com> | 2024-03-19 13:45:24 +0800 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.com> | 2024-04-03 13:42:04 +0200 |
commit | 247481b893e34805bfd94fdc34a34faa3bdec2de (patch) | |
tree | b7fcc15ccc569bafc9dd594762409415aec6e151 /scripts/gdb/linux/tasks.py | |
parent | 3e78a6c0d3e02e4cf881dc84c5127e9990f939d6 (diff) |
HID: hid-picolcd*: Convert sprintf() family to sysfs_emit() family
Per filesystems/sysfs.rst, show() should only use sysfs_emit()
or sysfs_emit_at() when formatting the value to be returned to user space.
coccinelle complains that there are still a couple of functions that use
snprintf(). Convert them to sysfs_emit().
sprintf() and scnprintf() will be converted as well if they have.
Generally, this patch is generated by
make coccicheck M=<path/to/file> MODE=patch \
COCCI=scripts/coccinelle/api/device_attr_show.cocci
No functional change intended
CC: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
CC: "Bruno Prémont" <bonbons@linux-vserver.org>
CC: Jiri Kosina <jikos@kernel.org>
CC: Benjamin Tissoires <benjamin.tissoires@redhat.com>
CC: linux-input@vger.kernel.org
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions