diff options
author | Nicolas Saenz Julienne <nicolassaenzj@gmail.com> | 2015-03-08 15:21:20 -0400 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-03-08 21:51:36 -0400 |
commit | 0595439a0a8740f776a0ae367a4c7f243add24ec (patch) | |
tree | e848e6443e8bddf36db178a7908b47b6e20ce9c8 /drivers/power/generic-adc-battery.c | |
parent | 02232be7a2bf6e2dd5e4a6c3a81470a09ecc7fdd (diff) |
power: generic-adc-battery: Fix power_supply_property returned value
The POWER_SUPPLY_PROP_STATUS case in gab_get_property() wasn't providing any
value.
Signed-off-by: Nicolas Saenz Julienne <nicolassaenzj@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/power/generic-adc-battery.c')
-rw-r--r-- | drivers/power/generic-adc-battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/generic-adc-battery.c b/drivers/power/generic-adc-battery.c index d72733e4f93a..0a566ac3eefd 100644 --- a/drivers/power/generic-adc-battery.c +++ b/drivers/power/generic-adc-battery.c | |||
@@ -159,7 +159,7 @@ static int gab_get_property(struct power_supply *psy, | |||
159 | 159 | ||
160 | switch (psp) { | 160 | switch (psp) { |
161 | case POWER_SUPPLY_PROP_STATUS: | 161 | case POWER_SUPPLY_PROP_STATUS: |
162 | gab_get_status(adc_bat); | 162 | val->intval = gab_get_status(adc_bat); |
163 | break; | 163 | break; |
164 | case POWER_SUPPLY_PROP_CHARGE_EMPTY_DESIGN: | 164 | case POWER_SUPPLY_PROP_CHARGE_EMPTY_DESIGN: |
165 | val->intval = 0; | 165 | val->intval = 0; |