summaryrefslogtreecommitdiff
path: root/drivers/regulator
diff options
context:
space:
mode:
authorChen-Yu Tsai <wenst@chromium.org>2026-03-20 16:31:33 +0800
committerMark Brown <broonie@kernel.org>2026-03-23 22:38:55 +0000
commit411eb30f13823c37cd20d7c0fb7d5c8bdb1d844d (patch)
tree9726de9bad2a1155cefd14b32f64c4ed93761275 /drivers/regulator
parent56b7c08a8b4bfbe622099c0feb0f0f815a15d1e3 (diff)
regulator: cros-ec: Add regulator supply
Even a regulator remotely controlled by the EC will have a power supply input. Add the supply property name from the device tree binding to the regulator description. Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> Link: https://patch.msgid.link/20260320083135.2455444-3-wenst@chromium.org Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/regulator')
-rw-r--r--drivers/regulator/cros-ec-regulator.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/regulator/cros-ec-regulator.c b/drivers/regulator/cros-ec-regulator.c
index fb0767b33a36..aec275fe1f44 100644
--- a/drivers/regulator/cros-ec-regulator.c
+++ b/drivers/regulator/cros-ec-regulator.c
@@ -183,6 +183,7 @@ static int cros_ec_regulator_probe(struct platform_device *pdev)
desc->owner = THIS_MODULE;
desc->type = REGULATOR_VOLTAGE;
desc->ops = &cros_ec_regulator_voltage_ops;
+ desc->supply_name = "vin";
ret = cros_ec_regulator_init_info(dev, drvdata);
if (ret < 0)