diff options
author | Hans de Goede <hdegoede@redhat.com> | 2018-03-20 08:57:07 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-22 08:40:10 -0400 |
commit | 2000016c94b4f724cb5851486b9f9a94e8da32fc (patch) | |
tree | 641098ba55d73a982c0f26f8cbdacb1612fa13d0 /include/linux/usb/tcpm.h | |
parent | c6962c29729cc64177f56a466766daa7de9f87ac (diff) |
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>
Diffstat (limited to 'include/linux/usb/tcpm.h')
-rw-r--r-- | include/linux/usb/tcpm.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/usb/tcpm.h b/include/linux/usb/tcpm.h index 3e8bdaa5085a..f0d839daeaea 100644 --- a/include/linux/usb/tcpm.h +++ b/include/linux/usb/tcpm.h | |||
@@ -16,7 +16,6 @@ | |||
16 | #define __LINUX_USB_TCPM_H | 16 | #define __LINUX_USB_TCPM_H |
17 | 17 | ||
18 | #include <linux/bitops.h> | 18 | #include <linux/bitops.h> |
19 | #include <linux/usb/role.h> | ||
20 | #include <linux/usb/typec.h> | 19 | #include <linux/usb/typec.h> |
21 | #include "pd.h" | 20 | #include "pd.h" |
22 | 21 | ||
@@ -113,14 +112,6 @@ enum tcpc_mux_mode { | |||
113 | TCPC_MUX_DP_ENABLED, | 112 | TCPC_MUX_DP_ENABLED, |
114 | }; | 113 | }; |
115 | 114 | ||
116 | struct tcpc_mux_dev { | ||
117 | int (*set)(struct tcpc_mux_dev *dev, enum tcpc_mux_mode mux_mode, | ||
118 | enum usb_role usb_role, | ||
119 | enum typec_cc_polarity polarity); | ||
120 | bool dfp_only; | ||
121 | void *priv_data; | ||
122 | }; | ||
123 | |||
124 | /** | 115 | /** |
125 | * struct tcpc_dev - Port configuration and callback functions | 116 | * struct tcpc_dev - Port configuration and callback functions |
126 | * @config: Pointer to port configuration | 117 | * @config: Pointer to port configuration |
@@ -172,7 +163,6 @@ struct tcpc_dev { | |||
172 | int (*try_role)(struct tcpc_dev *dev, int role); | 163 | int (*try_role)(struct tcpc_dev *dev, int role); |
173 | int (*pd_transmit)(struct tcpc_dev *dev, enum tcpm_transmit_type type, | 164 | int (*pd_transmit)(struct tcpc_dev *dev, enum tcpm_transmit_type type, |
174 | const struct pd_message *msg); | 165 | const struct pd_message *msg); |
175 | struct tcpc_mux_dev *mux; | ||
176 | }; | 166 | }; |
177 | 167 | ||
178 | struct tcpm_port; | 168 | struct tcpm_port; |