Skip to content

hwmon: Replace sprintf() with sysfs_emit()

Amay Agarwal linux-hwmon lkml 2 versions – Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 5 repliesApplied
  2. v12 of 5 patches 3 repliesSuperseded

Changes in v2 from the cover letter

1. Use imperative mood in commit messages

2. Format subjects as "hwmon: (driver) ..."

3. Remove redundant driver name from commit descriptions

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5hwmon: (tc74) Replace sprintf() with sysfs_emit()drivers/hwmon/tc74.c+1 -11 reply
2/5hwmon: (max31722) Replace sprintf() with sysfs_emit()drivers/hwmon/max31722.c+2 -11 reply
3/5hwmon: (ads7828) Replace sprintf() with sysfs_emit()drivers/hwmon/ads7828.c+1 -11 reply
4/5hwmon: (max6650) Replace sprintf() with sysfs_emit()drivers/hwmon/max6650.c+2 -11 reply
5/5hwmon: (emc1403) Replace sprintf() with sysfs_emit()drivers/hwmon/emc1403.c+1 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/5] hwmon: Replace sprintf() with sysfs_emit()

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(-)
Signature · 1 line
2.53.0