From: Chen-Yu Tsai Date: Fri, 20 Mar 2026 08:31:33 +0000 (+0800) Subject: regulator: cros-ec: Add regulator supply X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=411eb30f13823c37cd20d7c0fb7d5c8bdb1d844d;p=thirdparty%2Fkernel%2Fstable.git 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 Link: https://patch.msgid.link/20260320083135.2455444-3-wenst@chromium.org Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/cros-ec-regulator.c b/drivers/regulator/cros-ec-regulator.c index fb0767b33a366..aec275fe1f44f 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)