[PATCH v2 0/5] hwmon: Replace sprintf() with sysfs_emit()
From: Amay Agarwal
Date: Tue Mar 03 2026 - 10:26:29 EST
This series replaces sprintf() with sysfs_emit() in several hwmon
drivers when writing to sysfs buffers.
sysfs_emit() performs proper bounds checking and is the preferred
helper for sysfs output.
No functional changes intended.
Changes in v2:
1. Use imperative mood in commit messages
2. Format subjects as "hwmon: (driver) ..."
3. Remove redundant driver name from commit descriptions
Amay Agarwal (5):
hwmon: (tc74) Replace sprintf() with sysfs_emit()
hwmon: (max31722) Replace sprintf() with sysfs_emit()
hwmon: (ads7828) Replace sprintf() with sysfs_emit()
hwmon: (max6650) Replace sprintf() with sysfs_emit()
hwmon: (emc1403) Replace sprintf() with sysfs_emit()
drivers/hwmon/ads7828.c | 2 +-
drivers/hwmon/emc1403.c | 2 +-
drivers/hwmon/max31722.c | 3 ++-
drivers/hwmon/max6650.c | 3 ++-
drivers/hwmon/tc74.c | 2 +-
5 files changed, 7 insertions(+), 5 deletions(-)
--
2.53.0