mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 06:16:56 +07:00
regulator: ab8500: Set enable enable_time in regulator_desc
Signed-off-by: Axel Lin <axel.lin@gmail.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
4001376ef2
commit
7fee2afb53
@ -238,13 +238,6 @@ static int ab8500_regulator_set_voltage_sel(struct regulator_dev *rdev,
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int ab8500_regulator_enable_time(struct regulator_dev *rdev)
|
|
||||||
{
|
|
||||||
struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
|
|
||||||
|
|
||||||
return info->delay;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int ab8500_regulator_set_voltage_time_sel(struct regulator_dev *rdev,
|
static int ab8500_regulator_set_voltage_time_sel(struct regulator_dev *rdev,
|
||||||
unsigned int old_sel,
|
unsigned int old_sel,
|
||||||
unsigned int new_sel)
|
unsigned int new_sel)
|
||||||
@ -261,7 +254,6 @@ static struct regulator_ops ab8500_regulator_ops = {
|
|||||||
.get_voltage_sel = ab8500_regulator_get_voltage_sel,
|
.get_voltage_sel = ab8500_regulator_get_voltage_sel,
|
||||||
.set_voltage_sel = ab8500_regulator_set_voltage_sel,
|
.set_voltage_sel = ab8500_regulator_set_voltage_sel,
|
||||||
.list_voltage = regulator_list_voltage_table,
|
.list_voltage = regulator_list_voltage_table,
|
||||||
.enable_time = ab8500_regulator_enable_time,
|
|
||||||
.set_voltage_time_sel = ab8500_regulator_set_voltage_time_sel,
|
.set_voltage_time_sel = ab8500_regulator_set_voltage_time_sel,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -276,7 +268,6 @@ static struct regulator_ops ab8500_regulator_fixed_ops = {
|
|||||||
.is_enabled = ab8500_regulator_is_enabled,
|
.is_enabled = ab8500_regulator_is_enabled,
|
||||||
.get_voltage = ab8500_fixed_get_voltage,
|
.get_voltage = ab8500_fixed_get_voltage,
|
||||||
.list_voltage = regulator_list_voltage_linear,
|
.list_voltage = regulator_list_voltage_linear,
|
||||||
.enable_time = ab8500_regulator_enable_time,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct ab8500_regulator_info
|
static struct ab8500_regulator_info
|
||||||
@ -374,6 +365,7 @@ static struct ab8500_regulator_info
|
|||||||
.owner = THIS_MODULE,
|
.owner = THIS_MODULE,
|
||||||
.n_voltages = 1,
|
.n_voltages = 1,
|
||||||
.min_uV = 2000000,
|
.min_uV = 2000000,
|
||||||
|
.enable_time = 10000,
|
||||||
},
|
},
|
||||||
.delay = 10000,
|
.delay = 10000,
|
||||||
.update_bank = 0x03,
|
.update_bank = 0x03,
|
||||||
|
Loading…
Reference in New Issue
Block a user