提交 5a6e7599 编写于 作者: P Pavel Machek 提交者: Linus Torvalds

drivers/rtc/rtc-bq32k.c: fix register value

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: NPavel Machek <pavel@denx.de>
Reported-by: NMike Bremford <mike@bfo.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 35dca71c
...@@ -160,7 +160,7 @@ static int trickle_charger_of_init(struct device *dev, struct device_node *node) ...@@ -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"); dev_err(dev, "bq32k: diode and resistor mismatch\n");
return -EINVAL; return -EINVAL;
} }
reg = 0x25; reg = 0x45;
break; break;
default: default:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册