diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-05-18 15:09:17 +0300 |
---|---|---|
committer | Bartosz Golaszewski <bgolaszewski@baylibre.com> | 2021-05-21 14:56:10 +0200 |
commit | 9e23bf6b00fd060d9a6fdf8a43f427d09992a21d (patch) | |
tree | 7805f9da3c1442cfedf525f3523e8b807d8bcbdb /scripts | |
parent | fd80b8ba3aa5340a0bbfdc4b72bb6a2111cd54bf (diff) |
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 'scripts')
0 files changed, 0 insertions, 0 deletions