From 8db3f36ee33b44a08019926598b209adf4ac1408 Mon Sep 17 00:00:00 2001
From: "choongryeol.lee" <choongryeol.lee@lge.com>
Date: Tue, 28 Oct 2014 15:33:40 -0700
Subject: [PATCH] power: bq27421: change polarity of CURRENT_NOW prop

For the compatibility of user apps, change the polarity
of CURRENT_NOW property. The positive values indicate
net current entering the battery from charging source.

Change-Id: I1286c4328422fb9a0b489b0d6dee0488ae115485
Signed-off-by: choongryeol.lee <choongryeol.lee@lge.com>
---
 drivers/power/bq27421_battery.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/power/bq27421_battery.c b/drivers/power/bq27421_battery.c
index b44170ecb7d3..b5a292accae6 100644
--- a/drivers/power/bq27421_battery.c
+++ b/drivers/power/bq27421_battery.c
@@ -328,7 +328,7 @@ static int bq27421_get_property(struct power_supply *psy,
 		break;
 	case POWER_SUPPLY_PROP_CURRENT_NOW:
 		val->intval = (s16)chip->current_now;
-		val->intval *= -1000;
+		val->intval *= 1000;
 		break;
 	default:
 		return -EINVAL;
-- 
GitLab