public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] power: generic-adc-battery: Fix power_supply_property returned value
@ 2015-03-08 19:21 nicolassaenzj
  2015-03-09  1:54 ` Sebastian Reichel
  0 siblings, 1 reply; 2+ messages in thread
From: nicolassaenzj @ 2015-03-08 19:21 UTC (permalink / raw)
  To: sre, dbaryshkov, dwmw2; +Cc: linux-pm, linux-kernel, Nicolas Saenz Julienne

From: Nicolas Saenz Julienne <nicolassaenzj@gmail.com>

The POWER_SUPPLY_PROP_STATUS case in gab_get_property() wasn't providing any
value.

Signed-off-by: Nicolas Saenz Julienne <nicolassaenzj@gmail.com>
---
 drivers/power/generic-adc-battery.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/generic-adc-battery.c b/drivers/power/generic-adc-battery.c
index d72733e..0a566ac 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,
 
 	switch (psp) {
 	case POWER_SUPPLY_PROP_STATUS:
-		gab_get_status(adc_bat);
+		val->intval = gab_get_status(adc_bat);
 		break;
 	case POWER_SUPPLY_PROP_CHARGE_EMPTY_DESIGN:
 		val->intval = 0;
-- 
2.3.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] power: generic-adc-battery: Fix power_supply_property returned value
  2015-03-08 19:21 [PATCH] power: generic-adc-battery: Fix power_supply_property returned value nicolassaenzj
@ 2015-03-09  1:54 ` Sebastian Reichel
  0 siblings, 0 replies; 2+ messages in thread
From: Sebastian Reichel @ 2015-03-09  1:54 UTC (permalink / raw)
  To: nicolassaenzj; +Cc: dbaryshkov, dwmw2, linux-pm, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 360 bytes --]

Hi,

On Sun, Mar 08, 2015 at 07:21:20PM +0000, nicolassaenzj@gmail.com wrote:
> From: Nicolas Saenz Julienne <nicolassaenzj@gmail.com>
> 
> The POWER_SUPPLY_PROP_STATUS case in gab_get_property() wasn't providing any
> value.

Thanks, queued:

http://git.infradead.org/battery-2.6.git/commit/0595439a0a8740f776a0ae367a4c7f243add24ec

-- Sebastian

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-03-09  1:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-08 19:21 [PATCH] power: generic-adc-battery: Fix power_supply_property returned value nicolassaenzj
2015-03-09  1:54 ` Sebastian Reichel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox