mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
regulator: fan53555: add fan53555 resume
Do suspend_enable in resume callback. Signed-off-by: Weixin Zhou <zwx@rock-chips.com> Change-Id: I6af64769a89376e9c09c70af1ac63861088be7c5
This commit is contained in:
@@ -200,6 +200,17 @@ static int fan53555_set_suspend_disable(struct regulator_dev *rdev)
|
||||
VSEL_BUCK_EN, 0);
|
||||
}
|
||||
|
||||
static int fan53555_resume(struct regulator_dev *rdev)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = fan53555_set_suspend_enable(rdev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return regulator_suspend_enable(rdev, PM_SUSPEND_MEM);
|
||||
}
|
||||
|
||||
static int fan53555_set_enable(struct regulator_dev *rdev)
|
||||
{
|
||||
struct fan53555_device_info *di = rdev_get_drvdata(rdev);
|
||||
@@ -352,6 +363,7 @@ static const struct regulator_ops fan53555_regulator_ops = {
|
||||
.set_ramp_delay = fan53555_set_ramp,
|
||||
.set_suspend_enable = fan53555_set_suspend_enable,
|
||||
.set_suspend_disable = fan53555_set_suspend_disable,
|
||||
.resume = fan53555_resume,
|
||||
};
|
||||
|
||||
static int fan53555_voltages_setup_fairchild(struct fan53555_device_info *di)
|
||||
|
||||
Reference in New Issue
Block a user