]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpio: sim: Replace sprintf() with sysfs_emit()
authorMaxwell Doose <m32285159@gmail.com>
Tue, 28 Apr 2026 11:34:39 +0000 (06:34 -0500)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Wed, 29 Apr 2026 07:50:04 +0000 (09:50 +0200)
commitbe22c0f7f2d573addcdf3a92f8aaef7a45a8c133
tree8d36f22b3938027dfab5336f0fa2f86c89d1bfa1
parent1005d6e0257a5623ef79bfbd8f588b498c1cab0d
gpio: sim: Replace sprintf() with sysfs_emit()

Replace sprintf() function calls with sysfs_emit() in the configfs show
callbacks. This will help harden the driver and will bring the driver
up-to-date with more modern functions.

Suggested-by: Bartosz Golaszewski <brgl@kernel.org>
Signed-off-by: Maxwell Doose <m32285159@gmail.com>
Link: https://patch.msgid.link/20260428113439.9783-1-m32285159@gmail.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpio-sim.c