]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
usb: typec: mux: Find the muxes by also matching against the device node
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Wed, 13 Feb 2019 07:45:53 +0000 (10:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Feb 2019 09:52:26 +0000 (10:52 +0100)
commit96a6d031ca9930938bd66d0052fc7ed2b56e3583
tree3604f06f52cfc511226c9af970b4a8b5910da34f
parent637e9e52b185e5b10372366bd6db97f27cf3f202
usb: typec: mux: Find the muxes by also matching against the device node

When the connections are defined in firmware, struct
device_connection will have the fwnode member pointing to
the device node (struct fwnode_handle) of the requested
device, and the endpoint will not be used at all in that
case.

Acked-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux.c