diff options
author | 2020-05-04 21:47:45 +0200 | |
---|---|---|
committer | 2020-05-10 23:06:33 +0200 | |
commit | 21d90eda433f5d39930ca7133340225b8fb7940f (patch) | |
tree | 68f696fa0ec344833413976cdb398228c7538699 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | power: bq25890: use proper CURRENT_NOW property for I_BAT (diff) | |
download | linux-dev-21d90eda433f5d39930ca7133340225b8fb7940f.tar.xz linux-dev-21d90eda433f5d39930ca7133340225b8fb7940f.zip |
power: bq25890: fix ADC mode configuration
Datasheet describes two modes for reading ADC measurements:
1. continuous, 1 Hz - enabled and started by CONV_RATE bit
2. one-shot - triggered by CONV_START bit
In continuous mode, CONV_START is read-only and signifies an ongoing
conversion.
Change the code to follow the datasheet and really disable continuous
mode for power saving.
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions