diff options
author | 2021-07-15 17:16:50 +0300 | |
---|---|---|
committer | 2021-07-16 19:20:28 +0200 | |
commit | ae57338716ce2e230514be54a06c9bfaa84433a7 (patch) | |
tree | a706ded1b841e2843a8fac3be6f2df9368a94bed /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Linux 5.14-rc1 (diff) | |
download | wireguard-linux-ae57338716ce2e230514be54a06c9bfaa84433a7.tar.xz wireguard-linux-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 <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions