Skip to content

iio: replace sprintf() with sysfs_emit() in .read_label() op

Nuno Sá b4-sent linux-iio 1 version In review

Get series with b4
b4 am [email protected] change-id 20250930-dev-sprintf-cleanup-baf2c89b3460

Versions newest first

  1. v1 Latest9 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9iio: adc: ad4030: replace sprintf() with sysfs_emit()drivers/iio/adc/ad4030.c+2 -20 replies
2/9iio: adc: ad7768-1: replace sprintf() with sysfs_emit()drivers/iio/adc/ad7768-1.c+1 -10 replies
3/9iio: adc: mcp3564: replace sprintf() with sysfs_emit()drivers/iio/adc/mcp3564.c+1 -11 reply
4/9iio: adc: meson_saradc: replace sprintf() with sysfs_emit()drivers/iio/adc/meson_saradc.c+3 -30 replies
5/9iio: adc: mt6360-adc: replace snprintf() with sysfs_emit()drivers/iio/adc/mt6360-adc.c+1 -10 replies
6/9iio: adc: pac1921: replace sprintf() with sysfs_emit()drivers/iio/adc/pac1921.c+4 -40 replies
7/9iio: adc: qcom-spmi-rradc: replace snprintf() with sysfs_emit()drivers/iio/adc/qcom-spmi-rradc.c+1 -10 replies
8/9iio: position: hid-sensor-custom-intel-hinge: replace sprintf() with sysfs_emit()drivers/iio/position/hid-sensor-custom-intel-hinge.c+1 -11 reply
9/9iio: resolver: ad2s1210: replace sprintf() with sysfs_emit()drivers/iio/resolver/ad2s1210.c+15 -150 replies

Reviews trailers per patch

2 of 9 patches have a Reviewed-by or Acked-by.

PatchMarius CristeaSrinivas Pandruvada
1/9
2/9
3/9R-b
4/9
5/9
6/9
7/9
8/9A-b
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] iio: replace sprintf() with sysfs_emit() in .read_label() op

When looking at some drivers implementing the .read_label() callback it came to my attention that there were some outliers using sprintf() (or even snprintf() with PAGE_SIZE) instead of sysfs_emit(). This series cleans that up.

---
Nuno Sá (9):
iio: adc: ad4030: replace sprintf() with sysfs_emit()
iio: adc: ad7768-1: replace sprintf() with sysfs_emit()
iio: adc: mcp3564: replace sprintf() with sysfs_emit()
iio: adc: meson_saradc: replace sprintf() with sysfs_emit()
iio: adc: mt6360-adc: replace snprintf() with sysfs_emit()
iio: adc: pac1921: replace sprintf() with sysfs_emit()
iio: adc: qcom-spmi-rradc: replace snprintf() with sysfs_emit()
iio: position: hid-sensor-custom-intel-hinge: replace sprintf() with sysfs_emit()
iio: resolver: ad2s1210: replace sprintf() with sysfs_emit()

 drivers/iio/adc/ad4030.c                           |  4 +--
 drivers/iio/adc/ad7768-1.c                         |  2 +-
 drivers/iio/adc/mcp3564.c                          |  2 +-
 drivers/iio/adc/meson_saradc.c                     |  6 ++---
 drivers/iio/adc/mt6360-adc.c                       |  2 +-
 drivers/iio/adc/pac1921.c                          |  8 +++---
 drivers/iio/adc/qcom-spmi-rradc.c                  |  2 +-
 .../iio/position/hid-sensor-custom-intel-hinge.c   |  2 +-
 drivers/iio/resolver/ad2s1210.c                    | 30 +++++++++++-----------
 9 files changed, 29 insertions(+), 29 deletions(-)

---
base-commit: b9700f87939f0f477e5c00db817f54ab8a97702b
change-id: 20250930-dev-sprintf-cleanup-baf2c89b3460 --

Thanks!
- Nuno Sá