linux_dsm_epyc7002/drivers/power/supply
Linus Walleij fb9a33ae6b power: supply: gpio_charger: switch to using GPIO descriptors
The GPIO charger is using a mix of the legacy GPIO interface
and <linux/of_gpio.h> which is not the modern way to use GPIOs.

Refactor like this:

- Use a GPIO descriptor for the GPIO line used to monitor the
  charger.
- Fetch the descriptor with devm_gpiod_get() as the first
  method.
- If this fails and we are *not* using device tree, then
  start looking to see if we can use platform data instead.
- After looking up and requesting a GPIO number with the
  legacy API, convert it to a descriptor.

This way we can later isolate and drop the legacy code as
more platforms move over to using descriptors.

Cc: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2017-01-04 22:04:50 +01:00
..
88pm860x_battery.c
88pm860x_charger.c
ab8500_bmdata.c
ab8500_btemp.c power: supply: fix spelling mistake: supply: "Celcius" -> "Celsius" 2017-01-04 22:04:46 +01:00
ab8500_charger.c
ab8500_fg.c power: supply: improve function-level documentation 2016-10-19 05:06:22 +02:00
abx500_chargalg.c
act8945a_charger.c power: supply: act8945a_charger: Add max current property 2016-09-01 13:55:55 +02:00
apm_power.c
axp20x_usb_power.c power: supply: axp20x_usb_power: add 100mA max current limit for AXP223 2017-01-04 21:59:46 +01:00
axp288_charger.c power: supply: axp288_charger: Use one notifier_block per extcon cable 2017-01-04 22:03:20 +01:00
axp288_fuel_gauge.c power: supply: axp288_fuel_gauge: Remove unnecessary irq?_en register writes 2017-01-04 22:03:44 +01:00
bq27xxx_battery_i2c.c power: supply: bq27xxx_battery: Fix register map for BQ27510 and BQ27520 2016-11-23 23:37:27 +01:00
bq27xxx_battery.c power: supply: bq27xxx_battery: Fix register map for BQ27510 and BQ27520 2016-11-23 23:37:27 +01:00
bq2415x_charger.c
bq24190_charger.c power: supply: fix spelling mistake: supply: "Celcius" -> "Celsius" 2017-01-04 22:04:46 +01:00
bq24257_charger.c power: bq24257: Fix use of uninitialized pointer bq->charger 2016-09-19 20:56:22 +02:00
bq24735-charger.c power: supply: bq24735: bring down the noise level 2017-01-04 22:03:33 +01:00
bq25890_charger.c
charger-manager.c
collie_battery.c
da9030_battery.c
da9052-battery.c
da9150-charger.c
da9150-fg.c
ds2760_battery.c
ds2780_battery.c
ds2781_battery.c
ds2782_battery.c
generic-adc-battery.c
goldfish_battery.c
gpio-charger.c power: supply: gpio_charger: switch to using GPIO descriptors 2017-01-04 22:04:50 +01:00
intel_mid_battery.c
ipaq_micro_battery.c power: ipaq_micro_battery: fix alias 2016-11-23 23:44:40 +01:00
isp1704_charger.c
jz4740-battery.c
Kconfig power: supply: add sbs-charger driver 2017-01-04 22:01:00 +01:00
lp8727_charger.c
lp8788-charger.c power: supply: lp8788: remove an unneeded NULL check 2016-10-19 05:36:09 +02:00
ltc2941-battery-gauge.c
Makefile power: supply: add sbs-charger driver 2017-01-04 22:01:00 +01:00
max8903_charger.c
max8925_power.c
max8997_charger.c power: supply: max8997_charger: Using device managed API and remove OOM print 2017-01-04 21:59:56 +01:00
max8998_charger.c
max14577_charger.c
max17040_battery.c power: supply: max17040: Change register transaction length from 8 bits to 16 bits 2016-10-19 05:06:32 +02:00
max17042_battery.c
max77693_charger.c
olpc_battery.c
pcf50633-charger.c
pda_power.c
pm2301_charger.c
pm2301_charger.h
pmu_battery.c
power_supply_core.c power: supply: improve function-level documentation 2016-10-19 05:06:22 +02:00
power_supply_leds.c
power_supply_sysfs.c
power_supply.h
qcom_smbb.c power: supply: qcom_smbb: Replace the deprecated extcon API 2017-01-04 22:00:07 +01:00
rt5033_battery.c
rt9455_charger.c
rx51_battery.c
s3c_adc_battery.c
sbs-battery.c power: supply: sbs-battery: Cleanup removal of chip->pdata 2016-09-21 02:04:47 +02:00
sbs-charger.c power: supply: add sbs-charger driver 2017-01-04 22:01:00 +01:00
smb347-charger.c
test_power.c
tosa_battery.c
tps65090-charger.c
tps65217_charger.c power: supply: tps65217: Use generic charger name 2017-01-04 22:00:37 +01:00
twl4030_charger.c
twl4030_madc_battery.c
wm97xx_battery.c power: supply: wm97xx_battery: remove redundant 2nd null check on pdata 2017-01-04 22:04:20 +01:00
wm831x_backup.c
wm831x_power.c
wm8350_power.c wm8350_power: use permission-specific DEVICE_ATTR variants 2016-11-23 23:46:20 +01:00
z2_battery.c