]> git.ipfire.org Git - thirdparty/linux.git/commit
firmware: stratix10-rsu: replace scnprintf() with sysfs_emit() in *_show() functions
authorRahul Kumar <rk0006818@gmail.com>
Wed, 15 Oct 2025 09:41:17 +0000 (15:11 +0530)
committerDinh Nguyen <dinguyen@kernel.org>
Thu, 13 Nov 2025 12:32:58 +0000 (06:32 -0600)
commit4f7ffdfb9928a70debc6b019a68a6e068745e937
treebf6866175c95d565292e9373369baffaa119fc70
parent15847537b623f844d9a08da99ff4568315e1d4f8
firmware: stratix10-rsu: replace scnprintf() with sysfs_emit() in *_show() functions

Replace scnprintf() with sysfs_emit() in sysfs *_show() functions
in stratix10-rsu.c to follow the kernel's guidelines from
Documentation/filesystems/sysfs.rst.

This improves consistency, safety, and makes the code easier to
maintain and update in the future.

Signed-off-by: Rahul Kumar <rk0006818@gmail.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
drivers/firmware/stratix10-rsu.c