diff options
| author | Lars-Peter Clausen <[email protected]> | 2021-12-16 19:52:17 +0100 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2022-01-23 18:03:37 +0000 |
| commit | f22ab91ae3029a68d45b1892effb0a1115d6926b (patch) | |
| tree | bb9f718d760521a3865f1b33e49f952f848c7879 /tools/perf/scripts/python | |
| parent | 1acdaa34ad17e304d39d83fc9affc2d71c550a13 (diff) | |
iio: sps30: Use sysfs_emit()
sysfs_emit() is preferred over raw s*printf() for sysfs attributes since it
knows about the sysfs buffer specifics and has some built-in checks for
size and alignment.
Use sysfs_emit() to format the custom `cleaning_period` device attribute of
the sps30 driver.
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')
0 files changed, 0 insertions, 0 deletions