]> git.ipfire.org Git - thirdparty/linux.git/commit
staging: iio: adt7316: replace sprintf() with sysfs_emit()
authorShi Hao <i.shihao.999@gmail.com>
Sun, 16 Nov 2025 10:16:20 +0000 (15:46 +0530)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 16 Nov 2025 15:25:08 +0000 (15:25 +0000)
commitf9e05791642810a0cf6237d39fafd6fec5e0b4bb
treea943e83231a6a58e6e045898bd043d77d6bc8eb2
parent02d44a1b64f11cdbcd5349063f149309c42a9fa5
staging: iio: adt7316: replace sprintf() with sysfs_emit()

Convert several sprintf() calls to sysfs_emit() in the
sysfs show functions, as it is the preferred helper and
prevents potential buffer overruns.

No functional changes intended.

Signed-off-by: Shi Hao <i.shihao.999@gmail.com>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/staging/iio/addac/adt7316.c