Commit d8833124 authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Jiri Kosina

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: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 179e8e47
...@@ -1825,7 +1825,7 @@ static ssize_t wacom_show_speed(struct device *dev, ...@@ -1825,7 +1825,7 @@ static ssize_t wacom_show_speed(struct device *dev,
struct hid_device *hdev = to_hid_device(dev); struct hid_device *hdev = to_hid_device(dev);
struct wacom *wacom = hid_get_drvdata(hdev); 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, static ssize_t wacom_store_speed(struct device *dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment