[PATCH 0/3] staging: iio: replace sprintf() with sysfs_emit()
From: Gabriel Rondon
Date: Thu Mar 19 2026 - 18:57:38 EST
Replace the remaining sprintf() calls with sysfs_emit() in sysfs
show functions across three staging IIO drivers: ad7816, ad5933, and
ad9834.
sysfs_emit() is the preferred API for sysfs callbacks as it is aware
of the PAGE_SIZE buffer limit. These are direct replacements with no
functional change. Build tested with gcc 13.3.
Gabriel Rondon (3):
staging: iio: ad7816: use sysfs_emit() in show functions
staging: iio: ad5933: use sysfs_emit() in show functions
staging: iio: ad9834: use sysfs_emit() in show functions
drivers/staging/iio/adc/ad7816.c | 16 ++++++-------
drivers/staging/iio/frequency/ad9834.c | 4 ++--
.../staging/iio/impedance-analyzer/ad5933.c | 24 +++++++++----------
3 files changed, 22 insertions(+), 22 deletions(-)
--
2.33.0