platform/x86: intel_cht_int33fe: Use new API to gain access to the role switch
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Mon, 19 Aug 2019 10:07:24 +0000 (13:07 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 26 Aug 2019 09:38:36 +0000 (11:38 +0200)
commit78cd4bf53635d3aeb73435bc89eb6eb39450f315
tree7e0c9f6abfbf93fb1551375e7fe6bcfec6fd43c2
parentd2a90ebb65536a6deeb9daf5aa8e0700e8cbb43a
platform/x86: intel_cht_int33fe: Use new API to gain access to the role switch

The driver for the Intel USB role mux now always supplies
software node for the role switch, so no longer checking
that, and never creating separate node for the role switch.
From now on using software_node_find_by_name() function to
get the handle to the USB role switch.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/platform/x86/intel_cht_int33fe.c