tmp_suning_uos_patched/drivers/power
Krzysztof Kozlowski 2dc9215d7c power_supply: Move run-time configuration to separate structure
Add new structure 'power_supply_config' for holding run-time
initialization data like of_node, supplies and private driver data.

The power_supply_register() function is changed so all power supply
drivers need updating.

When registering the power supply this new 'power_supply_config' should be
used instead of directly initializing 'struct power_supply'. This allows
changing the ownership of power_supply structure from driver to the
power supply core in next patches.

When a driver does not use of_node or supplies then it should use NULL
as config. If driver uses of_node or supplies then it should allocate
config on stack and initialize it with proper values.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Reviewed-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Acked-by: Pavel Machek <pavel@ucw.cz>

[for the nvec part]
Reviewed-by: Marc Dietrich <marvin24@gmx.de>

[for drivers/platform/x86/compal-laptop.c]
Reviewed-by: Darren Hart <dvhart@linux.intel.com>

[for drivers/hid/*]
Reviewed-by: Jiri Kosina <jkosina@suse.cz>

Signed-off-by: Sebastian Reichel <sre@kernel.org>
2015-03-13 23:15:12 +01:00
..
avs
reset power/reset: restart-poweroff: Remove arm dependencies 2015-01-25 22:13:18 +01:00
88pm860x_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
88pm860x_charger.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
ab8500_bmdata.c
ab8500_btemp.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
ab8500_charger.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
ab8500_fg.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
abx500_chargalg.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
apm_power.c
axp288_fuel_gauge.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
bq27x00_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
bq2415x_charger.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
bq24190_charger.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
bq24735-charger.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
charger-manager.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
collie_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
da9030_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
da9052-battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
da9150-charger.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
ds2760_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
ds2780_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
ds2781_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
ds2782_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
generic-adc-battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
goldfish_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
gpio-charger.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
intel_mid_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
ipaq_micro_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
isp1704_charger.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
jz4740-battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
Kconfig X-Power AXP288 PMIC Fuel Gauge Driver 2015-03-07 20:08:58 +01:00
lp8727_charger.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
lp8788-charger.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
ltc2941-battery-gauge.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
Makefile X-Power AXP288 PMIC Fuel Gauge Driver 2015-03-07 20:08:58 +01:00
max8903_charger.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
max8925_power.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
max8997_charger.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
max8998_charger.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
max14577_charger.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
max17040_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
max17042_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
max77693_charger.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
olpc_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
pcf50633-charger.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
pda_power.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
pm2301_charger.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
pm2301_charger.h
pmu_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
power_supply_core.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
power_supply_leds.c
power_supply_sysfs.c
power_supply.h
rt5033_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
rx51_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
s3c_adc_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
sbs-battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
smb347-charger.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
test_power.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
tosa_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
tps65090-charger.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
twl4030_charger.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
twl4030_madc_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
wm97xx_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
wm831x_backup.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
wm831x_power.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
wm8350_power.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00
z2_battery.c power_supply: Move run-time configuration to separate structure 2015-03-13 23:15:12 +01:00