diff options
author | Marcus Folkesson <[email protected]> | 2022-07-22 15:07:20 +0200 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2022-08-21 18:24:16 +0100 |
commit | 9e2238e3ae40d371a1130226e0e740aa1601efa6 (patch) | |
tree | 45a66365f957cb1451c3ddc28f828db82f2fbe47 /lib/test_fortify/write_overflow-strncpy-src.c | |
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 <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions