mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-09-18 23:09:29 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user