]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/mellanox: mlxbf-bootctl: use sysfs_emit() instead of sprintf()
authorAi Chao <aichao@kylinos.cn>
Thu, 16 Jan 2025 08:08:35 +0000 (16:08 +0800)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 20 Jan 2025 12:13:18 +0000 (14:13 +0200)
commit9886f575de5aefcfab537467c72e5176e5301df0
tree16081e3089b06837e4b32a7d91e990be15e050d8
parent6e4ab59b8391a248398951035b544f97fe5d9dc3
platform/mellanox: mlxbf-bootctl: 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: Ai Chao <aichao@kylinos.cn>
Acked-by: Vadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/20250116080836.2890442-1-aichao@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/mellanox/mlxbf-bootctl.c