From 30e88e79b63c2d78f53ae5c84ea0114677dcbaea Mon Sep 17 00:00:00 2001 From: Saravana Kannan Date: Wed, 1 Apr 2020 15:52:03 -0700 Subject: [PATCH] UPSTREAM: of: property: Add device link support for extcon Add support for creating device links out of more DT properties. Cc: MyungJoo Ham Cc: Chanwoo Choi Signed-off-by: Saravana Kannan Signed-off-by: Rob Herring (cherry picked from commit 78056e701c61132d15e0942e415926a6393fcf17) Signed-off-by: Saravana Kannan Bug: 163091301 Change-Id: Ifbf40d33788e59003a80c918098b08e94257d350 --- drivers/of/property.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/of/property.c b/drivers/of/property.c index 933294195ec3..c96b0be78fc5 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -1192,6 +1192,7 @@ DEFINE_SIMPLE_PROP(interrupt_parent, "interrupt-parent", NULL) DEFINE_SIMPLE_PROP(dmas, "dmas", "#dma-cells") DEFINE_SIMPLE_PROP(power_domains, "power-domains", "#power-domain-cells") DEFINE_SIMPLE_PROP(hwlocks, "hwlocks", "#hwlock-cells") +DEFINE_SIMPLE_PROP(extcon, "extcon", NULL) DEFINE_SUFFIX_PROP(regulators, "-supply", NULL) DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells") DEFINE_SUFFIX_PROP(gpios, "-gpios", "#gpio-cells") @@ -1216,6 +1217,7 @@ static const struct supplier_bindings of_supplier_bindings[] = { { .parse_prop = parse_dmas, }, { .parse_prop = parse_power_domains, }, { .parse_prop = parse_hwlocks, }, + { .parse_prop = parse_extcon, }, { .parse_prop = parse_regulators, }, { .parse_prop = parse_gpio, }, { .parse_prop = parse_gpios, },