diff options
| author | Bruno Martins <ehanoc@protonmail.com> | 2026-03-02 00:28:26 +0300 |
|---|---|---|
| committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2026-03-03 00:01:23 +0300 |
| commit | cd04646c0f3eefdde87538f6ff932420cedc9ba0 (patch) | |
| tree | cb58796992edbdc68b0fae6489a7f93eb87684bf /include/linux/console_struct.h | |
| parent | 5c3cf14b82f723ecaef7495fffcfe947e1c4d11e (diff) | |
| download | linux-cd04646c0f3eefdde87538f6ff932420cedc9ba0.tar.xz | |
staging: iio: ad7816: Replace sprintf() with sysfs_emit()
As stated in Documentation/filesystems/sysfs.rst:
'New implementations of show() methods should only use sysfs_emit() or
sysfs_emit_at() when formatting the value to be returned to user space.'
Replace sprintf with sysfs_emit in the following sysfs show functions:
- ad7816_show_mode()
- ad7816_show_available_modes()
- ad7816_show_channel()
- ad7816_show_value()
- ad7816_show_oti()
Signed-off-by: Bruno Martins <ehanoc@protonmail.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/console_struct.h')
0 files changed, 0 insertions, 0 deletions
