regulator: rk809 & rk817: fix up the is_enable return error

mark rk8xx_is_enabled_wmsk_regmap as is_enable callback func for switch ops.

Change-Id: Id54b6181fd8a39fa51607322c69dc9f5da18593a
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
This commit is contained in:
Elaine Zhang
2019-09-29 14:24:16 +08:00
committed by Tao Huang
parent 8da4ebf85d
commit d6ecef678c
+1 -1
View File
@@ -836,7 +836,7 @@ static const struct regulator_ops rk808_reg_ops_ranges = {
static const struct regulator_ops rk808_switch_ops = {
.enable = regulator_enable_regmap,
.disable = regulator_disable_regmap,
.is_enabled = regulator_is_enabled_regmap,
.is_enabled = rk8xx_is_enabled_wmsk_regmap,
.set_suspend_enable = rk808_set_suspend_enable,
.set_suspend_disable = rk808_set_suspend_disable,
};