Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: dwc3: drd: Switch to device property for 'extcon' handling

Switch to device property for 'extcon' handling.
No functional change intended.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>

authored by

Andy Shevchenko and committed by
Felipe Balbi
85383756 408d3ba0

+3 -2
+3 -2
drivers/usb/dwc3/drd.c
··· 10 10 #include <linux/extcon.h> 11 11 #include <linux/of_graph.h> 12 12 #include <linux/platform_device.h> 13 + #include <linux/property.h> 13 14 14 15 #include "debug.h" 15 16 #include "core.h" ··· 447 446 struct device_node *np_phy, *np_conn; 448 447 struct extcon_dev *edev; 449 448 450 - if (of_property_read_bool(dev->of_node, "extcon")) 451 - return extcon_get_edev_by_phandle(dwc->dev, 0); 449 + if (device_property_read_bool(dev, "extcon")) 450 + return extcon_get_edev_by_phandle(dev, 0); 452 451 453 452 np_phy = of_parse_phandle(dev->of_node, "phys", 0); 454 453 np_conn = of_graph_get_remote_node(np_phy, -1, -1);