commit | 5403f2807623b2e470c889f8d937e2f1a859251e | [log] [tgz] |
---|---|---|
author | Mircea Caprioru <mircea.caprioru@analog.com> | Wed Apr 01 14:22:30 2020 +0300 |
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | Sun Apr 19 17:50:01 2020 +0100 |
tree | db18c548eb34a9d9ddb586c9a48c269efe08304e | |
parent | 6f63c90aa3e8ca14b4024cee5d97795a408e8949 [diff] |
iio: core: Fix handling of 'dB' This patch fixes the call to iio_str_to_fixpoint when using 'dB' sufix. Before this the scale_db was not used when parsing the string written to the attribute and it failed with invalid value. Fixes: b8528224741b ("iio: core: Handle 'dB' suffix in core") Signed-off-by: Mircea Caprioru <mircea.caprioru@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>