diff options
author | Marcus Folkesson <marcus.folkesson@gmail.com> | 2022-07-22 16:07:20 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2022-08-21 20:24:16 +0300 |
commit | 9e2238e3ae40d371a1130226e0e740aa1601efa6 (patch) | |
tree | 45a66365f957cb1451c3ddc28f828db82f2fbe47 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cfbd76d5c9c449739bb74288d982bccf9ff822f4 (diff) | |
download | linux-9e2238e3ae40d371a1130226e0e740aa1601efa6.tar.xz |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions