mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
regulator: rk808: fix the regulator control value in system suspend for rk816
set 1 if the regulator is enabled in system suspend, 0 if not. Change-Id: I8d51ac685bbd2417f440842d010fe47946c9f567 Signed-off-by: shengfei Xu <xsf@rock-chips.com>
This commit is contained in:
@@ -370,7 +370,7 @@ static int rk816_set_suspend_enable(struct regulator_dev *rdev)
|
||||
|
||||
return regmap_update_bits(rdev->regmap, reg,
|
||||
val,
|
||||
0);
|
||||
val);
|
||||
}
|
||||
|
||||
static int rk816_set_suspend_disable(struct regulator_dev *rdev)
|
||||
@@ -400,7 +400,7 @@ static int rk816_set_suspend_disable(struct regulator_dev *rdev)
|
||||
|
||||
return regmap_update_bits(rdev->regmap, reg,
|
||||
val,
|
||||
val);
|
||||
0);
|
||||
}
|
||||
|
||||
static int rk808_set_suspend_enable(struct regulator_dev *rdev)
|
||||
|
||||
Reference in New Issue
Block a user