diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2021-03-20 08:14:04 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-03-29 11:12:30 +0100 |
commit | 6b92ba0a3057787b52555cd81a661e9499f644f3 (patch) | |
tree | 1bed37c96178b84d24672af703e219dec3fb1cc3 /README | |
parent | 0207483b22d0df9af94b7b5c63f7ff6a49925fce (diff) | |
download | linux-stable-6b92ba0a3057787b52555cd81a661e9499f644f3.tar.gz linux-stable-6b92ba0a3057787b52555cd81a661e9499f644f3.tar.bz2 linux-stable-6b92ba0a3057787b52555cd81a661e9499f644f3.zip |
iio: __iio_format_value(): 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 __iio_format_value() and related functions to use this new
interface.
This conversion involves changing the signature of __iio_format_value() so
that it similar to sysfs_emit_at() and takes the buffers start address and
an offset where to write within the buffer.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Link: https://lore.kernel.org/r/20210320071405.9347-4-lars@metafoo.de
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions