kernel_optimize_test/drivers/power
Viresh Kumar 585b008743 power-supply: Don't return -EINVAL from __power_supply_find_supply_from_node()
We need to stop 'class_for_each_device' loop when a supply matches with the
of-node. In order to achieve this we currently return -EINVAL from
__power_supply_populate_supplied_from() on successful match.

class_for_each_device() is free to return similar errors in other cases as well
and so the choice of return value here isn't particularly great.

This commit isn't removing the Hack but making it more elegant by returning '1'
instead.

Also power_supply_find_supply_from_node() can return errors other than
-EPROBE_DEFER now if class_for_each_device() fails.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
2014-09-16 11:01:33 +02:00
..
avs
reset power/reset: xgene-reset: Fix prototype of xgene_restart() 2014-09-06 20:59:07 +02:00
88pm860x_battery.c
88pm860x_charger.c
ab8500_bmdata.c
ab8500_btemp.c
ab8500_charger.c
ab8500_fg.c
abx500_chargalg.c
apm_power.c
bq27x00_battery.c
bq2415x_charger.c
bq24190_charger.c
bq24735-charger.c
charger-manager.c power: charger-manager: Remove casting the return value which is a void pointer 2014-09-06 21:07:40 +02:00
collie_battery.c
da9030_battery.c
da9052-battery.c
ds2760_battery.c
ds2780_battery.c
ds2781_battery.c
ds2782_battery.c
generic-adc-battery.c
goldfish_battery.c
gpio-charger.c
intel_mid_battery.c
ipaq_micro_battery.c
isp1704_charger.c
jz4740-battery.c
Kconfig
lp8727_charger.c
lp8788-charger.c
Makefile
max8903_charger.c
max8925_power.c
max8997_charger.c
max8998_charger.c
max14577_charger.c
max17040_battery.c
max17042_battery.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: Don't return -EINVAL from __power_supply_find_supply_from_node() 2014-09-16 11:01:33 +02:00
power_supply_leds.c
power_supply_sysfs.c power_supply: Add boot and calibration attributes 2014-09-06 21:05:04 +02:00
power_supply.h
rx51_battery.c
s3c_adc_battery.c
sbs-battery.c sbs-battery: add min design voltage to sbs-battery 2014-09-06 20:57:43 +02:00
smb347-charger.c
test_power.c
tosa_battery.c
tps65090-charger.c
twl4030_charger.c
twl4030_madc_battery.c
wm97xx_battery.c
wm831x_backup.c
wm831x_power.c
wm8350_power.c
z2_battery.c