OSDN Git Service

usb: typec: tcpm: Use new Type-C switch/mux and usb-role-switch functions
authorHans de Goede <hdegoede@redhat.com>
Tue, 20 Mar 2018 12:57:07 +0000 (15:57 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Mar 2018 12:40:10 +0000 (13:40 +0100)
commit2000016c94b4f724cb5851486b9f9a94e8da32fc
tree641098ba55d73a982c0f26f8cbdacb1612fa13d0
parentc6962c29729cc64177f56a466766daa7de9f87ac
usb: typec: tcpm: Use new Type-C switch/mux and usb-role-switch functions

Remove the unused (not implemented anywhere) tcpc_mux_dev abstraction
and replace it with calling the new typec_set_orientation,
usb_role_switch_set and typec_set_mode functions.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/Kconfig
drivers/usb/typec/fusb302/fusb302.c
drivers/usb/typec/tcpm.c
include/linux/usb/tcpm.h