]> git.baikalelectronics.ru Git - kernel.git/commit
iio: core: Fix handling of 'dB'
authorMircea Caprioru <mircea.caprioru@analog.com>
Wed, 1 Apr 2020 11:22:30 +0000 (14:22 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Apr 2020 16:50:01 +0000 (17:50 +0100)
commitaf78b2f0f28bffb70f30e6c6a7a3af0793cd8f4e
treedb18c548eb34a9d9ddb586c9a48c269efe08304e
parentc270ee1e052346643d003602c5affade70d12a32
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: 59c96d5aa951 ("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>
drivers/iio/industrialio-core.c