Sam Protsenko 59bf581f51 FROMGIT: usb: dwc3: drd: Improve dwc3_get_extcon() style
The previous change ("usb: dwc3: drd: Avoid error when extcon is
missing") changed the code flow in dwc3_get_extcon() function, leading
to unnecessary if-branch. This patch does housekeeping by reworking the
code for obtaining an extcon device from the "port" node.

Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Link: https://lore.kernel.org/r/20201214110741.8512-3-semen.protsenko@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit cb4d9b52ec06acc6eafd82e53ca90a1368fee7e6
 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I6380571972975a022123b1915565a9e3728d1a05
2021-01-20 15:24:13 +01:00
..
2020-10-30 14:51:01 -07:00
2021-01-19 09:33:21 +01:00
2021-01-19 09:33:21 +01:00
2021-01-10 12:19:03 +01:00
2020-12-30 12:47:03 +01:00
2021-01-19 09:33:21 +01:00
2021-01-06 14:56:56 +01:00
2021-01-13 10:29:42 +01:00
2020-12-30 12:47:03 +01:00
2021-01-19 18:49:54 +01:00
2021-01-19 09:33:21 +01:00
2020-11-16 15:02:33 -08:00
2020-12-03 10:00:23 +01:00
2021-01-19 18:49:54 +01:00
2020-12-30 12:47:03 +01:00
2021-01-19 18:27:26 +01:00
2021-01-17 14:17:03 +01:00
2021-01-10 12:19:03 +01:00
2020-12-30 12:47:03 +01:00
2021-01-09 13:46:22 +01:00
2021-01-19 18:49:54 +01:00
2020-10-25 11:12:31 -07:00
2020-12-30 12:47:03 +01:00
2020-12-30 12:47:03 +01:00
2020-12-30 12:47:03 +01:00
2020-10-27 19:23:04 +01:00
2020-12-30 12:47:03 +01:00
2020-12-30 11:53:53 +01:00
2021-01-17 14:17:02 +01:00
2020-12-30 12:47:03 +01:00
2021-01-19 18:49:54 +01:00
2020-12-30 12:47:03 +01:00
2021-01-19 18:49:54 +01:00
2021-01-19 18:49:54 +01:00
2020-11-27 14:48:03 -08:00
2020-12-30 12:47:03 +01:00
2020-12-30 12:47:03 +01:00
2020-12-30 12:47:03 +01:00