]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mei: bus: replace sprintf/scnprintf with sysfs_emit in show functions
authorMoon Hee Lee <moonhee.lee.ca@gmail.com>
Fri, 20 Jun 2025 18:11:44 +0000 (11:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Jun 2025 15:38:42 +0000 (16:38 +0100)
commit217592d08bc61bee770b3935dc499a14cfa3e35f
tree18984387e824739a7513718c35050920b4bc6944
parent86731a2a651e58953fc949573895f2fa6d456841
mei: bus: replace sprintf/scnprintf with sysfs_emit in show functions

Update all device attribute show callbacks in the MEI bus driver to use
sysfs_emit(), as recommended by Documentation/filesystems/sysfs.rst.

This improves consistency and aligns with current sysfs guidelines,
even though the existing use of sprintf/scnprintf is functionally safe.

Signed-off-by: Moon Hee Lee <moonhee.lee.ca@gmail.com>
Acked-by: Alexander Usyskin <alexander.usyskin@intel.com>
Link: https://lore.kernel.org/r/20250620181144.10750-1-moonhee.lee.ca@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mei/bus.c