linux/drivers/platform/mellanox
Ai Chao ff44b1ca88
platform/mellanox: mlxreg-io: 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/20250116081129.2902274-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>
2025-01-20 14:13:22 +02:00
..
Kconfig platform/mellanox: NVSW_SN2201 should depend on ACPI 2023-09-11 13:21:46 +02:00
Makefile platform/mellanox: Add support for new SN2201 system 2022-05-12 15:35:29 +02:00
mlxbf-bootctl.c platform/mellanox: mlxbf-bootctl: use sysfs_emit() instead of sprintf() 2025-01-20 14:13:18 +02:00
mlxbf-bootctl.h mlxbf-bootctl: Support sysfs entries for MFG fields 2023-08-23 17:31:27 +02:00
mlxbf-pmc.c platform/mellanox: mlxbf-pmc: Add support for clock_measure performance block 2025-01-15 16:26:35 +02:00
mlxbf-tmfifo-regs.h platform/mellanox: Add BlueField-3 support in the tmfifo driver 2022-11-16 08:48:19 +01:00
mlxbf-tmfifo.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
mlxreg-hotplug.c platform/mellanox: mlxreg-hotplug: use sysfs_emit() instead of sprintf() 2025-01-20 14:13:20 +02:00
mlxreg-io.c platform/mellanox: mlxreg-io: use sysfs_emit() instead of sprintf() 2025-01-20 14:13:22 +02:00
mlxreg-lc.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00
nvsw-sn2201.c Get rid of 'remove_new' relic from platform driver struct 2024-12-01 15:12:43 -08:00