diff options
author | Olivier Moysan <[email protected]> | 2021-10-14 15:12:27 +0200 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2021-10-20 14:43:54 +0100 |
commit | 0e346b2cfa855d6e6990dbdb220983fbf2bb0b92 (patch) | |
tree | 3b343348f8ca63bbc0c28229abf13e787dd8cc5c /drivers/usb/cdns3/cdns3-trace.c | |
parent | aec6e0d8f0fe2e99c6486ebf1979fe2a03890e39 (diff) |
iio: adc: stm32-adc: add vrefint calibration support
Add support of vrefint calibration.
If a channel is labeled as vrefint, get vrefint calibration
from non volatile memory for this channel.
vrefint channel is exposed as a processed channel returning
the actual value of vrefp:
vrefp = 3.3 x vrefint_cal / vrefint_data
A conversion on vrefint channel allows to update scale
factor according to vrefint deviation, compared to vrefint
calibration value.
Signed-off-by: Olivier Moysan <[email protected]>
Reviewed-by: Fabrice Gasnier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions