linux/drivers/iio
Marcus Folkesson 5461b547c2 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>
History 2022-09-08 11:24:01 +02:00
..
accel iio: cros: Register FIFO callback after sensor is registered 2022-08-17 15:15:35 +02:00
adc iio: adc: mcp3911: use correct formula for AD conversion 2022-09-08 11:24:01 +02:00
addac iio: addac: ad74413r: Fix alignment for DMA safety 2022-08-17 15:15:13 +02:00
afe 1st set of IIO fixes for the 5.19 cycle. 2022-06-20 09:49:52 +02:00
amplifiers iio: amplifiers: ad8366: Fix alignment for DMA safety 2022-08-17 15:15:13 +02:00
buffer iio: core: Simplify the registration of kfifo buffers 2022-04-10 16:25:46 +01:00
cdc iio:cdc:ad7150: Fix use of uninitialized ret 2021-04-07 08:36:39 +01:00
chemical 1st set of IIO fixes for the 5.19 cycle. 2022-06-20 09:49:52 +02:00
common iio: cros: Register FIFO callback after sensor is registered 2022-08-17 15:15:35 +02:00
dac iio: dac: ti-dac7612: Fix alignment for DMA safety 2022-08-17 15:15:16 +02:00
dummy Bitmap patches for 5.19-rc1 2022-06-04 14:04:27 -07:00
filter iio:filter:admv8818: select REGMAP_SPI for ADMV8818 2022-04-04 09:19:01 +01:00
frequency iio: frequency: adrf6780: Fix alignment for DMA safety 2022-08-17 15:15:17 +02:00
gyro iio: gyro: fxas210002c: Fix alignment for DMA safety 2022-08-17 15:15:17 +02:00
health iio: core: Simplify the registration of kfifo buffers 2022-04-10 16:25:46 +01:00
humidity iio:humidity:hts221: rearrange iio trigger get and register 2022-06-19 17:22:49 +01:00
imu iio: imu: mpu6050: Fix alignment for DMA safety 2022-08-17 15:15:18 +02:00
light iio: light: cm3605: Fix an error handling path in cm3605_probe() 2022-09-08 11:24:01 +02:00
magnetometer 1st set of IIO fixes for the 5.19 cycle. 2022-06-20 09:49:52 +02:00
multiplexer iio: multiplexer: Make use of device properties 2022-04-04 09:11:24 +01:00
orientation iio: hid-sensors: bind IIO channels alloc to device object 2021-07-13 18:21:53 +01:00
position iio: hid-sensors: Update header includes 2021-06-16 14:53:13 +01:00
potentiometer iio: potentiometer: mcp4131: Fix alignment for DMA safety 2022-08-17 15:15:19 +02:00
potentiostat iio: lmp91000: Remove no-op trigger ops 2021-11-17 17:51:38 +00:00
pressure iio: cros: Register FIFO callback after sensor is registered 2022-08-17 15:15:35 +02:00
proximity iio: proximity: as3935: Fix alignment for DMA safety 2022-08-17 15:15:19 +02:00
resolver iio: resolver: ad2s90: Fix alignment for DMA safety 2022-08-17 15:15:19 +02:00
temperature iio: temp: maxim_thermocouple: Fix alignment for DMA safety 2022-08-17 15:15:19 +02:00
test iio: test: fix missing MODULE_LICENSE for IIO_RESCALE=m 2022-06-19 17:22:49 +01:00
trigger 1st set of IIO fixes for the 5.19 cycle. 2022-06-20 09:49:52 +02:00
iio_core.h iio: Mark iio_device_type as const 2021-11-17 17:51:35 +00:00
iio_core_trigger.h iio: core-trigger: make iio_device_register_trigger_consumer() an int return 2021-03-11 20:47:02 +00:00
industrialio-buffer.c iio: Replace strtobool() with kstrtobool() 2022-04-28 19:22:54 +01:00
industrialio-configfs.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
industrialio-core.c iio: core: Fix IIO_ALIGN and rename as it was not sufficiently large 2022-08-17 15:15:08 +02:00
industrialio-event.c iio: Replace strtobool() with kstrtobool() 2022-04-28 19:22:54 +01:00
industrialio-sw-device.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
industrialio-sw-trigger.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
industrialio-trigger.c iio: core: Move the currentmode entry to the opaque structure 2022-04-10 16:23:01 +01:00
industrialio-triggered-event.c iio: core: move @id from struct iio_dev to struct iio_dev_opaque 2021-05-17 13:49:13 +01:00
inkern.c iio: inkern: make a best effort on offset calculation 2022-01-30 14:38:03 +00:00
Kconfig iio: add filter subfolder 2021-12-16 17:29:46 +00:00
Makefile iio: add filter subfolder 2021-12-16 17:29:46 +00:00
TODO iio: add a TODO 2020-03-08 17:28:53 +00:00