usb: typec: mux: Add helpers for setting the mux state
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Mon, 2 Mar 2020 13:53:46 +0000 (16:53 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Mar 2020 10:11:52 +0000 (11:11 +0100)
commit774a9df6aeac236282dc0ec711b73865b64ef6a1
treeabfc37c5004516b465bc0a90aa507ca1213c1fea
parentef441dd6af91e1f4265e890021ac3ad631b2b10e
usb: typec: mux: Add helpers for setting the mux state

Adding helpers typec_switch_set() and typec_mux_set() that
simply call the ->set callback function of the mux. These
functions make it possible to set the mux states also from
outside the class code.

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