mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-29 14:41:26 +01:00
dm: pmic: Correct the pmic_reg_write() implementation
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>
This commit is contained in:
parent
b5ffa4fdcb
commit
cd367d8997
@ -142,7 +142,7 @@ int pmic_reg_write(struct udevice *dev, uint reg, uint value)
|
|||||||
u8 byte = value;
|
u8 byte = value;
|
||||||
|
|
||||||
debug("%s: reg=%x, value=%x\n", __func__, reg, 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)
|
int pmic_clrsetbits(struct udevice *dev, uint reg, uint clr, uint set)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user