mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
power: fan53555: fix fan53555_regulator_set_value
fan53555_regulator_set_value() passes its own dev to pmic_clrsetbits() instead of its parent (pmic). As result u-boot crashes when you try to set voltage on fan53555 regulator Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
parent
c9fca5ec88
commit
e82692ab32
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ static int fan53555_regulator_set_value(struct udevice *dev, int uV)
|
|||
debug("%s: uV=%d; writing volume %d: %02x\n",
|
||||
__func__, uV, pdata->vol_reg, vol);
|
||||
|
||||
return pmic_clrsetbits(dev, pdata->vol_reg, GENMASK(6, 0), vol);
|
||||
return pmic_clrsetbits(dev->parent, pdata->vol_reg, GENMASK(6, 0), vol);
|
||||
}
|
||||
|
||||
static int fan53555_voltages_setup(struct udevice *dev)
|
||||
|
|
Loading…
Reference in a new issue