Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mfd: adp5585: Support getting vdd regulator

Make sure we get and enable the VDD supply (if available).

Reviewed-by: Lee Jones <lee@kernel.org>
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20250701-dev-adp5589-fw-v7-18-b1fcfe9e9826@analog.com
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

Nuno Sá and committed by
Lee Jones
4bdef655 3bdbd085

+5
+5
drivers/mfd/adp5585.c
··· 17 17 #include <linux/mod_devicetable.h> 18 18 #include <linux/module.h> 19 19 #include <linux/regmap.h> 20 + #include <linux/regulator/consumer.h> 20 21 #include <linux/types.h> 21 22 22 23 enum { ··· 709 708 regmap_config = adp5585_fill_variant_config(adp5585); 710 709 if (IS_ERR(regmap_config)) 711 710 return PTR_ERR(regmap_config); 711 + 712 + ret = devm_regulator_get_enable(&i2c->dev, "vdd"); 713 + if (ret) 714 + return ret; 712 715 713 716 adp5585->regmap = devm_regmap_init_i2c(i2c, regmap_config); 714 717 if (IS_ERR(adp5585->regmap))