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>
This commit is contained in:
Chen-Yu Tsai 2026-03-20 16:31:33 +08:00 committed by Mark Brown
parent 56b7c08a8b
commit 411eb30f13
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View 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)