projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Devkit8000: Switch over to enable_gpmc_cs_config
[oweals/u-boot.git]
/
drivers
/
misc
/
pmic_spi.c
diff --git
a/drivers/misc/pmic_spi.c
b/drivers/misc/pmic_spi.c
index ff35377afc3cee8a09bf6c272b51f86e80ff9440..5a0dd22e29078c6a4b0b8e9fc7d2ad2867ece25e 100644
(file)
--- a/
drivers/misc/pmic_spi.c
+++ b/
drivers/misc/pmic_spi.c
@@
-76,8
+76,7
@@
static u32 pmic_reg(struct pmic *p, u32 reg, u32 *val, u32 write)
}
if (write) {
- pmic_tx = p->hw.spi.prepare_tx(0, NULL, write);
- pmic_tx &= ~(1 << 31);
+ pmic_tx = p->hw.spi.prepare_tx(reg, val, 0);
tmp = cpu_to_be32(pmic_tx);
if (spi_xfer(slave, pmic_spi_bitlen, &tmp, &pmic_rx,
pmic_spi_flags)) {