lkml.org 
[lkml]   [2009]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[rfc/patch 10/15] power: bq27200: voltage should be expressed in uV
Date
... and not mV as the chip reports.

Signed-off-by: Felipe Balbi <me@felipebalbi.com>
---
drivers/power/bq27200_battery.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/power/bq27200_battery.c b/drivers/power/bq27200_battery.c
index 869761e..a359761 100644
--- a/drivers/power/bq27200_battery.c
+++ b/drivers/power/bq27200_battery.c
@@ -128,7 +128,7 @@ static int bq27200_voltage(struct bq27200 *bq)
if (ret < 0)
dev_err(&bq->client->dev, "error reading voltage\n");

- return ret;
+ return ret * 1000;
}

/*
--
1.6.1.3


\
 
 \ /
  Last update: 2009-07-12 20:33    [W:0.096 / U:13.724 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site