diff options
| author | Lars-Peter Clausen <[email protected]> | 2021-03-20 08:14:03 +0100 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2021-03-29 11:12:30 +0100 |
| commit | 0207483b22d0df9af94b7b5c63f7ff6a49925fce (patch) | |
| tree | 8250e19e402a891d08beab8d6ef60292d7e1842a /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 83ca56b663cf3116c4a5535b4eb6eccb82113828 (diff) | |
iio: iio_enum_available_read(): Convert to sysfs_emit_at()
sysfs_emit() is preferred over raw s*printf() for sysfs attributes since it
knows about the sysfs buffer specifics and has some built-in sanity checks.
Convert the iio_enum_available_read() function to use sysfs_emit_at()
instead of scnprintf().
The conversion is straight forward, the only difference is that
sysfs_emit_at() takes the buffers start address and an offset as parameters
and already knows about the buffer's size limit.
Signed-off-by: Lars-Peter Clausen <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions