linux-stable/drivers/iio
Marcus Folkesson 0d90ef8749 iio: adc: mcp3911: use correct formula for AD conversion
commit 9e2238e3ae upstream.

The ADC conversion is actually not rail-to-rail but with a factor 1.5.
Make use of this factor when calculating actual voltage.

Fixes: 3a89b289df ("iio: adc: add support for mcp3911")
Signed-off-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220722130726.7627-4-marcus.folkesson@gmail.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-09-15 12:04:51 +02:00
..
accel iio: accel: mma8452: ignore the return value of reset operation 2022-06-29 08:58:48 +02:00
adc iio: adc: mcp3911: use correct formula for AD conversion 2022-09-15 12:04:51 +02:00
afe iio: afe: rescale: use s64 for temporary scale calculations 2022-04-15 14:17:57 +02:00
amplifiers
buffer
chemical iio:chemical:ccs811: rearrange iio trigger get and register 2022-06-29 08:58:47 +02:00
common iio: st_sensors: Add a local lock for protecting odr 2022-06-14 18:11:59 +02:00
dac iio: dac: ad5446: Fix read_raw not returning set value 2022-05-09 09:03:21 +02:00
dummy iio: dummy: iio_simple_dummy: check the return value of kstrdup() 2022-06-14 18:11:59 +02:00
frequency
gyro iio: gyro: mpu3050: Fix the error handling in mpu3050_power_up() 2022-06-29 08:58:48 +02:00
health
humidity iio: humidity: hdc100x: Add margin to the conversion time 2021-08-18 08:56:56 +02:00
imu iio: Fix error handling for PM 2022-03-02 11:41:12 +01:00
light iio: light: isl29028: Fix the warning in isl29028_remove() 2022-08-25 11:17:24 +02:00
magnetometer iio: magnetometer: ak8975: Fix the error handling in ak8975_power_on() 2022-05-09 09:03:21 +02:00
multiplexer
orientation
potentiometer
potentiostat iio: potentiostat: lmp91000: Fix alignment of buffer in iio_push_to_buffers_with_timestamp() 2021-07-14 16:53:39 +02:00
pressure
proximity iio: prox: isl29501: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-07-14 16:53:45 +02:00
resolver
temperature iio: hid-sensor-temperature: Fix issues of timestamp channel 2021-03-24 11:26:43 +01:00
trigger iio: trigger: sysfs: fix use-after-free on remove 2022-06-29 08:58:48 +02:00
iio_core.h
iio_core_trigger.h
industrialio-buffer.c
industrialio-configfs.c
industrialio-core.c
industrialio-event.c
industrialio-sw-device.c
industrialio-sw-trigger.c
industrialio-trigger.c iio: trigger: Fix reference counting 2021-12-14 14:49:05 +01:00
industrialio-triggered-event.c
inkern.c iio: inkern: make a best effort on offset calculation 2022-04-15 14:17:58 +02:00
Kconfig
Makefile