Skip to content
Commit 7bc5c3ea authored by Quentin Schulz's avatar Quentin Schulz Committed by Kever Yang
Browse files

regulator: rk8xx: fix incorrect device used for _ldo_[sg]et_suspend_value



_ldo_get_suspend_value and _ldo_set_suspend_value get passed the parent
of the regulator (so the pmic) as first argument, therefore this udevice
should be used for pmic_* callbacks instead of using the parent of the
pmic.

To avoid further confusion, let's rename the argument to pmic instead of
dev, highlighting which kind of device we expect as argument.

Fixes: f047e4ab ("regulator: rk8xx: add indirection level for some ldo callbacks")
Reported-by: default avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarQuentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: default avatarKever Yang <kever.yang@rock-chips.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>  # chromebook-bob
parent 53ce8215
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment