diff options
author | Marcus Folkesson | 2022-07-22 15:07:20 +0200 |
---|---|---|
committer | Jonathan Cameron | 2022-08-21 18:24:16 +0100 |
commit | 9e2238e3ae40d371a1130226e0e740aa1601efa6 (patch) | |
tree | 45a66365f957cb1451c3ddc28f828db82f2fbe47 /Documentation | |
parent | cfbd76d5c9c449739bb74288d982bccf9ff822f4 (diff) |
iio: adc: mcp3911: use correct formula for AD conversion
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: 3a89b289df5d ("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>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions