diff mbox series

regulator: mp8859: add supply entry

Message ID 20200203110034.1448-1-m.reichl@fivetechno.de (mailing list archive)
State New, archived
Headers show
Series regulator: mp8859: add supply entry | expand

Commit Message

Markus Reichl Feb. 3, 2020, 11 a.m. UTC
Add vin_supply to the regulator description to support a nice
regulator tree.

Signed-off-by: Markus Reichl <m.reichl@fivetechno.de>
---
 drivers/regulator/mp8859.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Heiko Stuebner Feb. 3, 2020, 12:28 p.m. UTC | #1
Am Montag, 3. Februar 2020, 12:00:33 CET schrieb Markus Reichl:
> Add vin_supply to the regulator description to support a nice
> regulator tree.
> 
> Signed-off-by: Markus Reichl <m.reichl@fivetechno.de>

double checked the datasheet for the supply name and all is correct, so

Reviewed-by: Heiko Stuebner <heiko@sntech.de>

> ---
>  drivers/regulator/mp8859.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/regulator/mp8859.c b/drivers/regulator/mp8859.c
> index 1d26b506ee5b..6ed987648188 100644
> --- a/drivers/regulator/mp8859.c
> +++ b/drivers/regulator/mp8859.c
> @@ -95,6 +95,7 @@ static const struct regulator_desc mp8859_regulators[] = {
>  		.id = 0,
>  		.type = REGULATOR_VOLTAGE,
>  		.name = "mp8859_dcdc",
> +		.supply_name = "vin",
>  		.of_match = of_match_ptr("mp8859_dcdc"),
>  		.n_voltages = VOL_MAX_IDX + 1,
>  		.linear_ranges = mp8859_dcdc_ranges,
>
diff mbox series

Patch

diff --git a/drivers/regulator/mp8859.c b/drivers/regulator/mp8859.c
index 1d26b506ee5b..6ed987648188 100644
--- a/drivers/regulator/mp8859.c
+++ b/drivers/regulator/mp8859.c
@@ -95,6 +95,7 @@  static const struct regulator_desc mp8859_regulators[] = {
 		.id = 0,
 		.type = REGULATOR_VOLTAGE,
 		.name = "mp8859_dcdc",
+		.supply_name = "vin",
 		.of_match = of_match_ptr("mp8859_dcdc"),
 		.n_voltages = VOL_MAX_IDX + 1,
 		.linear_ranges = mp8859_dcdc_ranges,