Skip to content

Commit 669430b

Browse files
Saravana Kannanrobherring
authored andcommitted
of: property: fw_devlink: Add support for "power-supplies" binding
Add support for parsing power-supplies binding so that fw_devlink can enforce the dependency. Signed-off-by: Saravana Kannan <[email protected]> Cc: Sebastian Reichel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rob Herring (Arm) <[email protected]>
1 parent 638887e commit 669430b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/of/property.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,6 +1242,7 @@ DEFINE_SIMPLE_PROP(backlight, "backlight", NULL)
12421242
DEFINE_SIMPLE_PROP(panel, "panel", NULL)
12431243
DEFINE_SIMPLE_PROP(msi_parent, "msi-parent", "#msi-cells")
12441244
DEFINE_SIMPLE_PROP(post_init_providers, "post-init-providers", NULL)
1245+
DEFINE_SIMPLE_PROP(power_supplies, "power-supplies", NULL)
12451246
DEFINE_SUFFIX_PROP(regulators, "-supply", NULL)
12461247
DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells")
12471248

@@ -1347,6 +1348,7 @@ static const struct supplier_bindings of_supplier_bindings[] = {
13471348
{ .parse_prop = parse_backlight, },
13481349
{ .parse_prop = parse_panel, },
13491350
{ .parse_prop = parse_msi_parent, },
1351+
{ .parse_prop = parse_power_supplies, },
13501352
{ .parse_prop = parse_gpio_compat, },
13511353
{ .parse_prop = parse_interrupts, },
13521354
{ .parse_prop = parse_regulators, },

0 commit comments

Comments
 (0)