summaryrefslogtreecommitdiffstats
path: root/tools/pci
diff options
context:
space:
mode:
authorLi Zhijian <lizhijian@fujitsu.com>2024-03-19 06:45:25 +0100
committerJiri Kosina <jkosina@suse.com>2024-04-03 13:42:04 +0200
commit460560fda31b8d22b7dac0f69965e3626536b5bb (patch)
treebd6380d229a69b9f74f321002abb2e7b39cd6743 /tools/pci
parentHID: hid-picolcd*: Convert sprintf() family to sysfs_emit() family (diff)
downloadlinux-460560fda31b8d22b7dac0f69965e3626536b5bb.tar.xz
linux-460560fda31b8d22b7dac0f69965e3626536b5bb.zip
HID: hid-sensor-custom: 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: Jiri Kosina <jikos@kernel.org> CC: Jonathan Cameron <jic23@kernel.org> CC: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> CC: Benjamin Tissoires <benjamin.tissoires@redhat.com> CC: linux-input@vger.kernel.org CC: linux-iio@vger.kernel.org Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Li Zhijian <lizhijian@fujitsu.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/pci')
0 files changed, 0 insertions, 0 deletions