diff options
author | Quentin Schulz <[email protected]> | 2017-01-27 09:54:36 +0100 |
---|---|---|
committer | Sebastian Reichel <[email protected]> | 2017-01-29 23:15:17 +0100 |
commit | 33863c938caa2538397170f1a355885f1ea1564e (patch) | |
tree | 757c1a82857b7757260222d7674d40c269f22ac1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 166e8dbd630af5248c66c29082480d3cc44da010 (diff) |
power: supply: axp20x_usb_power: use IIO channels when available
The X-Powers AXP20X PMIC exposes the current current and voltage
measures via an internal ADC.
This adds the possibility to read IIO channels directly for processed
values rather than reading the registers and computing the value.
For backward compatibility purpose, if the IIO driver is not compiled,
this driver will fall back on previous behaviour which is direct
register readings.
Signed-off-by: Quentin Schulz <[email protected]>
Acked-by: Maxime Ripard <[email protected]>
Acked-by: Jonathan Cameron <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions