]> git.ipfire.org Git - thirdparty/linux.git/commit
hwmon: (ina2xx) Convert sysfs sprintf/snprintf family to sysfs_emit
authorZihao Tang <tangzihao1@hisilicon.com>
Tue, 16 Mar 2021 11:00:57 +0000 (19:00 +0800)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 20 Apr 2021 13:50:14 +0000 (06:50 -0700)
commitaf9a973040bd5c27dfa1c7b5e970b7cf9238b530
tree3f1e2423c93740c42bac3a41970d921a053c1180
parent9d2227bb9bd4ae799e77c0575452e7e5716658ea
hwmon: (ina2xx) Convert sysfs sprintf/snprintf family to sysfs_emit

Fix the following coccicheck warning:

drivers/hwmon/ina2xx.c:313:8-16: WARNING: use scnprintf or sprintf
drivers/hwmon/ina2xx.c:453:8-16: WARNING: use scnprintf or sprintf
drivers/hwmon/ina2xx.c:484:8-16: WARNING: use scnprintf or sprintf
drivers/hwmon/ina2xx.c:540:8-16: WARNING: use scnprintf or sprintf

Signed-off-by: Zihao Tang <tangzihao1@hisilicon.com>
Signed-off-by: Jay Fang <f.fangjian@huawei.com>
Link: https://lore.kernel.org/r/1615892457-35501-1-git-send-email-f.fangjian@huawei.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/ina2xx.c