diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2021-02-02 16:19:00 +0800 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2021-02-05 10:16:45 +0100 |
commit | d883312489df262501d635b706be43080b30f1ec (patch) | |
tree | 4f1b02f62904fb29b3cf9ae50202da895ca7f853 /drivers/hid | |
parent | 179e8e47c02a1950f1c556f2b854bdb2259078fb (diff) | |
download | linux-d883312489df262501d635b706be43080b30f1ec.tar.bz2 |
HID: wacom: convert sysfs sprintf/snprintf family to sysfs_emit
Fix the following coccicheck warning:
./drivers/hid/wacom_sys.c:1828:8-16: WARNING: use scnprintf or sprintf.
Reported-by: Abaci Robot<abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
-rw-r--r-- | drivers/hid/wacom_sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c index aa9e48876ced..8328ef155c46 100644 --- a/drivers/hid/wacom_sys.c +++ b/drivers/hid/wacom_sys.c @@ -1825,7 +1825,7 @@ static ssize_t wacom_show_speed(struct device *dev, struct hid_device *hdev = to_hid_device(dev); struct wacom *wacom = hid_get_drvdata(hdev); - return snprintf(buf, PAGE_SIZE, "%i\n", wacom->wacom_wac.bt_high_speed); + return sysfs_emit(buf, "%i\n", wacom->wacom_wac.bt_high_speed); } static ssize_t wacom_store_speed(struct device *dev, |