aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/device.py
diff options
context:
space:
mode:
authorPaul Cercueil <[email protected]>2019-11-16 14:56:19 +0100
committerSebastian Reichel <[email protected]>2019-12-19 01:07:53 +0100
commit86b9182df8bb12610d4d6feac45a69f3ed57bfd2 (patch)
tree38cff080e190c68500cf55a9816a42267ed08abf /scripts/gdb/linux/device.py
parentdd04defd11b78a73b302587575bbcda1019925d8 (diff)
power/supply: ingenic-battery: Don't change scale if there's only one
The ADC in the JZ4740 can work either in high-precision mode with a 2.5V range, or in low-precision mode with a 7.5V range. The code in place in this driver will select the proper scale according to the maximum voltage of the battery. The JZ4770 however only has one mode, with a 6.6V range. If only one scale is available, there's no need to change it (and nothing to change it to), and trying to do so will fail with -EINVAL. Fixes: fb24ccfbe1e0 ("power: supply: add Ingenic JZ47xx battery driver.") Signed-off-by: Paul Cercueil <[email protected]> Acked-by: Artur Rojek <[email protected]> Cc: [email protected] Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/device.py')
0 files changed, 0 insertions, 0 deletions