aboutsummaryrefslogtreecommitdiff
path: root/drivers/iio/industrialio-core.c
diff options
context:
space:
mode:
authorGravatar Jonathan Cameron <Jonathan.Cameron@huawei.com> 2022-06-26 13:29:31 +0100
committerGravatar Jonathan Cameron <Jonathan.Cameron@huawei.com> 2022-08-15 22:30:00 +0100
commit431e9147b4667d67399fe5db4f8203d55811951b (patch)
treef653af3c5f57c928791a7cd86d34b68a3672817c /drivers/iio/industrialio-core.c
parentstaging: iio: cdc: ad7746: Drop unused i2c_set_clientdata() (diff)
downloadlinux-431e9147b4667d67399fe5db4f8203d55811951b.tar.gz
linux-431e9147b4667d67399fe5db4f8203d55811951b.tar.bz2
linux-431e9147b4667d67399fe5db4f8203d55811951b.zip
staging: iio: cdc: ad7746: Use _raw and _scale for temperature channels.
Performing the maths to rescale a 24 bit raw reading within the driver was resulting in precision losses. So make that userspace's problem by exporting the scale and letting the maths be done in userspace with appropriate precision. Issue identified using roadtester testing framework. Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20220626122938.582107-11-jic23@kernel.org
Diffstat (limited to 'drivers/iio/industrialio-core.c')
0 files changed, 0 insertions, 0 deletions