linux/drivers/power
Ramakrishna Pallala 60a1f6e446 max17042_battery: Fix error handling
In max17042_get_property(...), the values returned by
max17042_read_reg are directly assigned to the variables,
even if the read results in an error.

This patch checks for the return code from max17042_read_reg and
exits the function if there is any error.

Signed-off-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
2011-11-26 04:11:15 +04:00
..
apm_power.c apm_power: Fix style error in macros 2011-07-08 16:55:56 +04:00
bq20z75.c bq20z75: Devicetree init support 2011-11-24 22:39:17 +04:00
bq27x00_battery.c bq27x00_battery: Fix OOPS caused by unregistring bq27x00 driver 2011-11-26 00:03:44 +04:00
collie_battery.c collie_battery: Convert to gpio_request_array() / gpio_free_array() 2011-11-24 23:30:22 +04:00
da9030_battery.c
ds2760_battery.c ds2760_battery: Add rated capacity of the hx4700 3600mAh battery 2011-11-26 03:41:47 +04:00
ds2780_battery.c ds2780_battery&z2_battery: Add __devexit_p at necessary places 2011-08-19 21:03:21 +04:00
ds2782_battery.c Change Ryan Mallon's email address across the kernel 2011-06-16 11:22:05 +02:00
gpio-charger.c gpio-charger: Fix checking return value of request_any_context_irq 2011-07-08 17:01:59 +04:00
intel_mid_battery.c intel_mid_battery: Handle Over Current gracefully 2011-11-24 23:46:35 +04:00
isp1704_charger.c
jz4740-battery.c
Kconfig Merge git://git.infradead.org/battery-2.6 2011-07-31 06:24:50 -10:00
Makefile Merge git://git.infradead.org/battery-2.6 2011-07-31 06:24:50 -10:00
max8903_charger.c max8903_charger: Add "platform:" prefix for platform modalias 2011-08-19 21:03:20 +04:00
max8925_power.c max8925_power: Enable power change notifications 2011-11-25 23:30:58 +04:00
max8997_charger.c max8997_charger: Fix unsigned value for less than zero 2011-11-25 02:56:21 +04:00
max8998_charger.c max8998_charger: Allow full timeout not set, leave it unchanged 2011-08-19 21:03:26 +04:00
max17040_battery.c
max17042_battery.c max17042_battery: Fix error handling 2011-11-26 04:11:15 +04:00
olpc_battery.c olpc_battery: Remove unneeded 'olpc_battery_trigger_uevent' 2011-11-24 23:07:00 +04:00
pcf50633-charger.c
pda_power.c pda_power: Fix build error if !CONFIG_USB_OTG_UTILS 2011-08-23 17:31:52 +04:00
pmu_battery.c
power_supply.h
power_supply_core.c
power_supply_leds.c
power_supply_sysfs.c power_supply: Fix sysfs format warning 2011-08-23 17:32:07 +04:00
s3c_adc_battery.c s3c-adc-battery: Fix compilation error due to missing header (module.h) 2011-08-19 21:01:46 +04:00
test_power.c power: Make test_power driver more dynamic. 2011-05-20 19:25:08 +04:00
tosa_battery.c tosa_battery: Convert to gpio_request_array() / gpio_free_array() 2011-11-24 23:30:42 +04:00
twl4030_charger.c twl4030_charger: Fix warnings 2011-07-08 16:57:59 +04:00
wm97xx_battery.c power_supply: Remove IRQF_DISABLED 2011-11-26 00:34:12 +04:00
wm831x_backup.c wm831x_backup: Support multiple instances 2011-07-08 16:56:47 +04:00
wm831x_power.c wm831x_power: Only register WM831x battery charger if enabled 2011-08-19 21:03:23 +04:00
wm8350_power.c
z2_battery.c power_supply: Remove IRQF_DISABLED 2011-11-26 00:34:12 +04:00