misc: isl29003: Use sysfs_emit() to instead of sprintf()
authorBo Liu <liubo03@inspur.com>
Sun, 29 Jan 2023 09:23:57 +0000 (04:23 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Jan 2023 12:02:46 +0000 (13:02 +0100)
commitcc3db79bb1389b3e95e84a4ef73d85f2a1cb8fe0
treeb5765142a0f67ede9914a7fc5ad4935a08b9c71f
parentdd08ebe761328de4f894a4909e01e145bc68ef4c
misc: isl29003: Use sysfs_emit() to instead of sprintf()

Follow the advice of the Documentation/filesystems/sysfs.rst and show()
should only use sysfs_emit() or sysfs_emit_at() when formatting the
value to be returned to user space.

Signed-off-by: Bo Liu <liubo03@inspur.com>
Link: https://lore.kernel.org/r/20230129092357.3143-1-liubo03@inspur.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/isl29003.c