]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: eeepc-laptop: use sysfs_emit() instead of sprintf()
authorchen zhang <chenzhang@kylinos.cn>
Wed, 23 Oct 2024 01:29:05 +0000 (09:29 +0800)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 25 Oct 2024 14:31:50 +0000 (17:31 +0300)
commita7d30cb75b0b3b243f57fd8dab4992a6a40f917e
tree893b6f5ffdcf83bbd871fb71f05a5eb57c03f9a6
parent1349dd7dc21c63c9bad0e91fd1bf5f1ada34b0e2
platform/x86: eeepc-laptop: use sysfs_emit() instead of sprintf()

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

Signed-off-by: chen zhang <chenzhang@kylinos.cn>
Link: https://lore.kernel.org/r/20241023012905.15551-1-chenzhang@kylinos.cn
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/eeepc-laptop.c