rtc: sysfs: Use sysfs_emit() to instead of s*printf()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 2 Jul 2025 06:15:34 +0000 (09:15 +0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 22 Jul 2025 11:05:40 +0000 (13:05 +0200)
commit4dda8df717b7e5ad89de79844e5491aaf78b44da
tree42437f73d8e21f2a1fe87c21deb5a764cddba2ff
parente92eda97f8c534be63ab0ef322ad2fdfeb759e16
rtc: sysfs: Use sysfs_emit() to instead of s*printf()

Follow the advice of the Documentation/filesystems/sysfs.rst that show()
should only use sysfs_emit() or sysfs_emit_at() when formatting the value
to be returned to user space.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250702061534.2670729-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/rtc/sysfs.c