diff options
| author | Andy Shevchenko <[email protected]> | 2021-07-15 14:16:50 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2021-07-16 17:20:28 +0000 |
| commit | ae57338716ce2e230514be54a06c9bfaa84433a7 (patch) | |
| tree | a706ded1b841e2843a8fac3be6f2df9368a94bed /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | Linux 5.14-rc1 (diff) | |
| download | kernel-ae57338716ce2e230514be54a06c9bfaa84433a7.tar.gz kernel-ae57338716ce2e230514be54a06c9bfaa84433a7.zip | |
ACPI: configfs: Use sysfs_emit() in "show" functions
The sysfs_emit() function was introduced to make it less ambiguous
which function is preferred when writing to the output buffer in
a "show" callback [1].
Convert the GPIO library sysfs interface from sprintf() to sysfs_emit()
accordingly, as the latter is aware of the PAGE_SIZE buffer and correctly
returns the number of bytes written into the buffer.
No functional change intended.
[1] Documentation/filesystems/sysfs.rst
Signed-off-by: Andy Shevchenko <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
