]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
regulator: cros-ec: Add regulator supply
authorChen-Yu Tsai <wenst@chromium.org>
Fri, 20 Mar 2026 08:31:33 +0000 (16:31 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 23 Mar 2026 22:38:55 +0000 (22:38 +0000)
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>
drivers/regulator/cros-ec-regulator.c

index fb0767b33a36641b453ac1381b6b1bc632b54458..aec275fe1f44f605a53f431daccc3811c64c7361 100644 (file)
@@ -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)