linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/9] iio: replace sprintf() with sysfs_emit() in .read_label() op
@ 2025-09-30 15:33 Nuno Sá via B4 Relay
  2025-09-30 15:33 ` [PATCH 1/9] iio: adc: ad4030: replace sprintf() with sysfs_emit() Nuno Sá via B4 Relay
                   ` (9 more replies)
  0 siblings, 10 replies; 13+ messages in thread
From: Nuno Sá via B4 Relay @ 2025-09-30 15:33 UTC (permalink / raw)
  To: linux-iio
  Cc: Michael Hennerich, Esteban Blanc, Jonathan Cameron, David Lechner,
	Andy Shevchenko, Marius Cristea, Neil Armstrong, Kevin Hilman,
	Jerome Brunet, Martin Blumenstingl, Matthias Brugger,
	AngeloGioacchino Del Regno, Matteo Martelli, Jiri Kosina,
	Srinivas Pandruvada, Nuno Sá

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á



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-10-04 14:00 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-30 15:33 [PATCH 0/9] iio: replace sprintf() with sysfs_emit() in .read_label() op Nuno Sá via B4 Relay
2025-09-30 15:33 ` [PATCH 1/9] iio: adc: ad4030: replace sprintf() with sysfs_emit() Nuno Sá via B4 Relay
2025-09-30 15:33 ` [PATCH 2/9] iio: adc: ad7768-1: " Nuno Sá via B4 Relay
2025-09-30 15:33 ` [PATCH 3/9] iio: adc: mcp3564: " Nuno Sá via B4 Relay
2025-09-30 15:59   ` Marius.Cristea
2025-09-30 15:33 ` [PATCH 4/9] iio: adc: meson_saradc: " Nuno Sá via B4 Relay
2025-09-30 15:33 ` [PATCH 5/9] iio: adc: mt6360-adc: replace snprintf() " Nuno Sá via B4 Relay
2025-09-30 15:33 ` [PATCH 6/9] iio: adc: pac1921: replace sprintf() " Nuno Sá via B4 Relay
2025-09-30 15:33 ` [PATCH 7/9] iio: adc: qcom-spmi-rradc: replace snprintf() " Nuno Sá via B4 Relay
2025-09-30 15:33 ` [PATCH 8/9] iio: position: hid-sensor-custom-intel-hinge: replace sprintf() " Nuno Sá via B4 Relay
2025-09-30 16:07   ` srinivas pandruvada
2025-09-30 15:33 ` [PATCH 9/9] iio: resolver: ad2s1210: " Nuno Sá via B4 Relay
2025-10-04 14:00 ` [PATCH 0/9] iio: replace sprintf() with sysfs_emit() in .read_label() op Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).