diff options
author | 2021-05-18 15:09:17 +0300 | |
---|---|---|
committer | 2021-05-21 14:56:10 +0200 | |
commit | 9e23bf6b00fd060d9a6fdf8a43f427d09992a21d (patch) | |
tree | 7805f9da3c1442cfedf525f3523e8b807d8bcbdb /tools/perf/scripts/python/export-to-postgresql.py | |
parent | gpiolib: Make use of assign_bit() API (part 2) (diff) | |
download | wireguard-linux-9e23bf6b00fd060d9a6fdf8a43f427d09992a21d.tar.xz wireguard-linux-9e23bf6b00fd060d9a6fdf8a43f427d09992a21d.zip |
gpiolib: 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: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions