]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
hwmon: (tc74) Replace sprintf() with sysfs_emit()
authorAmay Agarwal <tt@turingtested.xyz>
Tue, 3 Mar 2026 15:24:52 +0000 (20:54 +0530)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 31 Mar 2026 02:45:05 +0000 (19:45 -0700)
commit8baa5fc554f342d35e679fdf6b375d0cbdc8c0b4
tree65d6bdfee14e67d10c90e7facf3e526663984cae
parenteeca1114d1e2cc0eacaebb80f3f2afbaebfc60be
hwmon: (tc74) Replace sprintf() with sysfs_emit()

Replace sprintf() with sysfs_emit() when writing to sysfs buffers.

sysfs_emit() performs proper bounds checking and is the preferred helper
for sysfs output.

No functional change intended

Signed-off-by: Amay Agarwal <tt@turingtested.xyz>
Link: https://lore.kernel.org/r/20260303152456.35763-2-tt@turingtested.xyz
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/tc74.c