public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] rtc: bq3000: fix register value
       [not found] <543d6974.2KPlDgEZUrUl6vsa%akpm@linux-foundation.org>
@ 2014-10-22 11:35 ` Pavel Machek
  0 siblings, 0 replies; only message in thread
From: Pavel Machek @ 2014-10-22 11:35 UTC (permalink / raw)
  To: akpm
  Cc: a.zummo, ijc+devicetree, jason, linux, matti.vaittinen, robh+dt,
	mike, kernel list, rtc-linux


Fix register value in bq32000 trickle charging. 

Mike reported that I'm using wrong value in one trickle-charging case,
and after checking docs, I must admit he's right.
    
Signed-off-by: Pavel Machek <pavel@denx.de>
Reported-by: Mike Bremford <mike@bfo.com>

diff --git a/drivers/rtc/rtc-bq32k.c b/drivers/rtc/rtc-bq32k.c
index c02e246..54e9f7a 100644
--- a/drivers/rtc/rtc-bq32k.c
+++ b/drivers/rtc/rtc-bq32k.c
@@ -160,7 +160,7 @@ static int trickle_charger_of_init(struct device *dev, struct device_node *node)
 			dev_err(dev, "bq32k: diode and resistor mismatch\n");
 			return -EINVAL;
 		}
-		reg = 0x25;
+		reg = 0x45;
 		break;
 
 	default:

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-10-22 11:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <543d6974.2KPlDgEZUrUl6vsa%akpm@linux-foundation.org>
2014-10-22 11:35 ` [patch] rtc: bq3000: fix register value Pavel Machek

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