linux_dsm_epyc7002/drivers/power/supply
Paul Cercueil 86b9182df8 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: fb24ccfbe1 ("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>
2019-12-19 01:07:53 +01:00
..
88pm860x_battery.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
88pm860x_charger.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
ab8500_bmdata.c
ab8500_btemp.c power: supply: ab8500: Handle invalid IRQ from platform_get_irq_byname() 2019-10-20 15:18:44 +02:00
ab8500_charger.c power: supply: ab8500_charger: Fix inconsistent IS_ERR and PTR_ERR 2019-10-27 22:33:07 +01:00
ab8500_fg.c power: supply: ab8500: Handle invalid IRQ from platform_get_irq_byname() 2019-10-20 15:18:44 +02:00
abx500_chargalg.c power: supply: abx500_chargalg: Fix code indentation 2019-10-20 14:54:31 +02:00
act8945a_charger.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
adp5061.c
apm_power.c
axp20x_ac_power.c
axp20x_battery.c
axp20x_usb_power.c power: supply: axp20x_usb_power: enable USB BC detection on AXP813 2019-10-14 06:19:53 +02:00
axp288_charger.c
axp288_fuel_gauge.c power: supply: axp288_fuel_gauge: Add Minix Neo Z83-4 to the blacklist 2019-09-01 21:44:15 +02:00
bd70528-charger.c power: supply: bd70528: Add MODULE_ALIAS to allow module auto loading 2019-10-27 22:33:44 +01:00
bq27xxx_battery_hdq.c
bq27xxx_battery_i2c.c
bq27xxx_battery.c
bq2415x_charger.c
bq24190_charger.c power supply and reset changes for the v5.3 series 2019-07-15 21:06:15 -07:00
bq24257_charger.c power supply and reset changes for the v5.3 series 2019-07-15 21:06:15 -07:00
bq24735-charger.c
bq25890_charger.c power: supply: bq25890_charger: Add the BQ25895 part 2019-09-02 21:12:08 +02:00
charger-manager.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
collie_battery.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
cpcap-battery.c power: supply: cpcap-battery: Add basic coulomb counter calibrate support 2019-10-20 20:48:59 +02:00
cpcap-charger.c power: supply: cpcap-charger: cpcap_charger_voltage_to_regval() can be static 2019-10-21 10:43:41 +02:00
cros_usbpd-charger.c mfd / platform: cros_ec: Reorganize platform and mfd includes 2019-09-02 11:33:42 +01:00
da9030_battery.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
da9052-battery.c
da9150-charger.c
da9150-fg.c
ds2760_battery.c
ds2780_battery.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
ds2781_battery.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
ds2782_battery.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
generic-adc-battery.c
goldfish_battery.c
gpio-charger.c
ingenic-battery.c power/supply: ingenic-battery: Don't change scale if there's only one 2019-12-19 01:07:53 +01:00
ipaq_micro_battery.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
isp1704_charger.c power: supply: isp1704: remove redundant assignment to variable ret 2019-09-02 21:12:45 +02:00
Kconfig power: supply: ab8500_btemp: Convert to IIO ADC 2019-10-18 19:36:48 +01:00
lego_ev3_battery.c
lp8727_charger.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
lp8788-charger.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
lt3651-charger.c
ltc2941-battery-gauge.c
Makefile power/supply: Drop obsolete JZ4740 driver 2019-07-30 10:41:54 -07:00
max1721x_battery.c
max8903_charger.c
max8925_power.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
max8997_charger.c
max8998_charger.c
max14577_charger.c
max14656_charger_detector.c power supply and reset changes for the v5.3 series 2019-07-15 21:06:15 -07:00
max17040_battery.c power: supply: max17040_battery: simplify getting the adapter of a client 2019-06-23 18:02:53 +02:00
max17042_battery.c power: supply: max17042_battery: Fix a typo in function names 2019-09-02 21:02:43 +02:00
max77650-charger.c power: supply: max77650: add MODULE_ALIAS() 2019-09-02 21:15:45 +02:00
max77693_charger.c
olpc_battery.c platform-drivers-x86 for v5.3-1 2019-07-14 16:51:47 -07:00
pcf50633-charger.c
pda_power.c power: supply: pda_power: add missed usb_unregister_notifier 2019-12-19 01:07:53 +01:00
pm2301_charger.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
pm2301_charger.h
pmu_battery.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
power_supply_core.c power: supply: Init device wakeup after device_add() 2019-09-02 10:06:31 +02:00
power_supply_hwmon.c power: supply: register HWMON devices with valid names 2019-09-01 21:43:04 +02:00
power_supply_leds.c
power_supply_sysfs.c power supply and reset changes for the v5.3 series 2019-07-15 21:06:15 -07:00
power_supply.h
qcom_smbb.c
rt5033_battery.c power supply and reset changes for the v5.3 series 2019-07-15 21:06:15 -07:00
rt9455_charger.c power supply and reset changes for the v5.3 series 2019-07-15 21:06:15 -07:00
rx51_battery.c
s3c_adc_battery.c
sbs-battery.c power: supply: sbs-battery: only return health when battery present 2019-09-02 10:06:31 +02:00
sbs-charger.c
sbs-manager.c power supply and reset changes for the v5.3 series 2019-07-15 21:06:15 -07:00
sc27xx_fuel_gauge.c power: supply: sc27xx: Add POWER_SUPPLY_PROP_CALIBRATE attribute 2019-09-02 23:00:20 +02:00
sc2731_charger.c
smb347-charger.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
test_power.c test_power: Add CURRENT properties 2019-10-10 18:32:49 +02:00
tosa_battery.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
tps65090-charger.c
tps65217_charger.c
twl4030_charger.c
twl4030_madc_battery.c
ucs1002_power.c power: supply: fix semicolon.cocci warnings 2019-06-26 21:56:52 +02:00
wilco-charger.c power_supply: wilco_ec: Add charging config driver 2019-07-05 00:54:36 +02:00
wm97xx_battery.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
wm831x_backup.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
wm831x_power.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
wm8350_power.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
z2_battery.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00