summaryrefslogtreecommitdiffstats
path: root/drivers/iio/afe
diff options
context:
space:
mode:
authorLiam Beguin <liambeguin@gmail.com>2022-01-08 15:53:06 -0500
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2022-01-30 14:38:03 +0000
commitca85123354e1a65a22170286387b4791997fe864 (patch)
tree4c694d037109cf2167aedaa86d8604a75dfa6e01 /drivers/iio/afe
parent14b457fdde38de594a4bc4bd9075019319d978da (diff)
downloadlinux-ca85123354e1a65a22170286387b4791997fe864.tar.bz2
iio: inkern: make a best effort on offset calculation
iio_convert_raw_to_processed_unlocked() assumes the offset is an integer. Make a best effort to get a valid offset value for fractional cases without breaking implicit truncations. Fixes: 48e44ce0f881 ("iio:inkern: Add function to read the processed value") Signed-off-by: Liam Beguin <liambeguin@gmail.com> Reviewed-by: Peter Rosin <peda@axentia.se> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20220108205319.2046348-4-liambeguin@gmail.com Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/afe')
0 files changed, 0 insertions, 0 deletions