From: Saravana Kannan Date: Sat, 14 Aug 2021 02:31:30 +0000 (-0700) Subject: of: property: fw_devlink: Add support for "leds" and "backlight" X-Git-Tag: v5.15-rc1~137^2~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=18c585c7d742b8a207a4a932871dde1aa2a5b8fe;p=thirdparty%2Fkernel%2Flinux.git of: property: fw_devlink: Add support for "leds" and "backlight" Allows tracking dependencies between leds/backlights devices and their consumers. Signed-off-by: Saravana Kannan Link: https://lore.kernel.org/r/20210814023132.2729731-2-saravanak@google.com Signed-off-by: Rob Herring --- diff --git a/drivers/of/property.c b/drivers/of/property.c index a81559c5ee2ba..931340329414f 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -1289,6 +1289,8 @@ DEFINE_SIMPLE_PROP(pinctrl8, "pinctrl-8", NULL) DEFINE_SIMPLE_PROP(remote_endpoint, "remote-endpoint", NULL) DEFINE_SIMPLE_PROP(pwms, "pwms", "#pwm-cells") DEFINE_SIMPLE_PROP(resets, "resets", "#reset-cells") +DEFINE_SIMPLE_PROP(leds, "leds", NULL) +DEFINE_SIMPLE_PROP(backlight, "backlight", NULL) DEFINE_SUFFIX_PROP(regulators, "-supply", NULL) DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells") @@ -1375,6 +1377,8 @@ static const struct supplier_bindings of_supplier_bindings[] = { { .parse_prop = parse_remote_endpoint, .node_not_dev = true, }, { .parse_prop = parse_pwms, }, { .parse_prop = parse_resets, }, + { .parse_prop = parse_leds, }, + { .parse_prop = parse_backlight, }, { .parse_prop = parse_gpio_compat, }, { .parse_prop = parse_interrupts, }, { .parse_prop = parse_regulators, },