projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b5ffa4f
)
dm: pmic: Correct the pmic_reg_write() implementation
author
Simon Glass
<sjg@chromium.org>
Fri, 3 Jul 2015 00:16:03 +0000
(18:16 -0600)
committer
Simon Glass
<sjg@chromium.org>
Thu, 6 Aug 2015 03:06:12 +0000
(21:06 -0600)
This should write the register, not read it. Fix this bug.
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Przemyslaw Marczak <p.marczak@samsung.com>
drivers/power/pmic/pmic-uclass.c
patch
|
blob
|
history
diff --git
a/drivers/power/pmic/pmic-uclass.c
b/drivers/power/pmic/pmic-uclass.c
index d99cb9aadaa9c37f0994454df4454f4e55fdd59b..49709f30842ece7f029494ab189120ec818ddebd 100644
(file)
--- a/
drivers/power/pmic/pmic-uclass.c
+++ b/
drivers/power/pmic/pmic-uclass.c
@@
-142,7
+142,7
@@
int pmic_reg_write(struct udevice *dev, uint reg, uint value)
u8 byte = value;
debug("%s: reg=%x, value=%x\n", __func__, reg, value);
- return pmic_
read
(dev, reg, &byte, 1);
+ return pmic_
write
(dev, reg, &byte, 1);
}
int pmic_clrsetbits(struct udevice *dev, uint reg, uint clr, uint set)