Re: [PATCH] power/supply: ingenic-battery: Don't change scale if there's only one

2019-09-02 Thread Sebastian Reichel
Hi, On Mon, Jul 22, 2019 at 10:45:54PM -0400, Paul Cercueil wrote: > 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

[PATCH] power/supply: ingenic-battery: Don't change scale if there's only one

2019-07-22 Thread Paul Cercueil
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