Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iio: Fix IIO_VAL_FRACTIONAL_LOG2 newline termination
Currently two newline characters are appended at the end of IIO_VAL_FRACTIONAL_LOG2 values when preparing them for displaying in sysfs. One is added in __iio_format_value() the other in iio_format_value(). This is unintended behavior and can confuse userspace tools. Remove the newline that is added in __iio_format_value(). Fixes: 4320b09 ("iio:core: add a callback to allow drivers to provide _available attributes") Signed-off-by: Lars-Peter Clausen <[email protected]>
- Loading branch information