usb: typec: mux: Allow the mux handles to be requested with fwnode
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Mon, 2 Mar 2020 13:53:47 +0000 (16:53 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Mar 2020 10:12:49 +0000 (11:12 +0100)
commitd1c6a769cdf466053ae211789f2b0671c8a72331
treedba1c4ee2ce52e47bcfcc4e49a732f0b240deccb
parent774a9df6aeac236282dc0ec711b73865b64ef6a1
usb: typec: mux: Allow the mux handles to be requested with fwnode

Introducing fwnode_typec_switch_get() and
fwnode_typec_mux_get() functions that work just like
typec_switch_get() and typec_mux_get() but they take struct
fwnode_handle as the first parameter instead of struct
device.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200302135353.56659-4-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux.c
include/linux/usb/typec_mux.h