mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
rtc: rx8025: use sysfs_emit() instead of sprintf()
Use sysfs_emit() instead of sprintf() in the sysfs show callback (rx8025_sysfs_show_clock_adjust) to conform to the recommended sysfs attribute formatting guidelines in Documentation/filesystems/sysfs.rst. Link: https://patch.msgid.link/20261029132339.925021-7-alexandre.belloni@bootlin.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
This commit is contained in:
parent
0f3bc1c937
commit
c0b38531dd
|
|
@ -486,7 +486,7 @@ static ssize_t rx8025_sysfs_show_clock_adjust(struct device *dev,
|
|||
if (err)
|
||||
return err;
|
||||
|
||||
return sprintf(buf, "%ld\n", -adj);
|
||||
return sysfs_emit(buf, "%ld\n", -adj);
|
||||
}
|
||||
|
||||
static ssize_t rx8025_sysfs_store_clock_adjust(struct device *dev,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user