diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-07-15 17:16:50 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2021-07-16 20:20:28 +0300 |
commit | ae57338716ce2e230514be54a06c9bfaa84433a7 (patch) | |
tree | a706ded1b841e2843a8fac3be6f2df9368a94bed /LICENSES | |
parent | e73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff) | |
download | linux-ae57338716ce2e230514be54a06c9bfaa84433a7.tar.xz |
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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions