diff options
author | Olivier Moysan <[email protected]> | 2022-06-09 11:58:56 +0200 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2022-06-19 17:22:49 +0100 |
commit | bc05f30fc24705cd023f38659303376eaa5767df (patch) | |
tree | 05d966ff2b61928bb5f9fc41c48c3f07e7b172a5 /lib/test_fortify/write_overflow-memcpy.c | |
parent | 106b391e1b859100a3f38f0ad874236e9be06bde (diff) |
iio: adc: stm32: fix vrefint wrong calibration value handling
If the vrefint calibration is zero, the vrefint channel output value
cannot be computed. Currently, in such case, the raw conversion value
is returned, which is not relevant.
Do not expose the vrefint channel when the output value cannot be
computed, instead.
Fixes: 0e346b2cfa85 ("iio: adc: stm32-adc: add vrefint calibration support")
Signed-off-by: Olivier Moysan <[email protected]>
Reviewed-by: Fabrice Gasnier <[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-memcpy.c')
0 files changed, 0 insertions, 0 deletions