summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Cercueil <paul@crapouillou.net>2019-11-16 14:56:19 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-01 09:33:00 +0000
commita1d58baa628e662e2d03c77ba91bf2fe15c3a8ff (patch)
treeb2b80d6d4fe0cd4bf3ecef07f7661fb381fc92d0 /Makefile
parent3a9c7789d7c8b82b508f44e4f4e34749b0de018b (diff)
power/supply: ingenic-battery: Don't change scale if there's only one
commit 86b9182df8bb12610d4d6feac45a69f3ed57bfd2 upstream. 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 <paul@crapouillou.net> Acked-by: Artur Rojek <contact@artur-rojek.eu> Cc: stable@vger.kernel.org Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions