| .. | .. |
|---|
| 1 | | -// SPDX-License-Identifier: GPL-2.0 |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0 */ |
|---|
| 2 | 2 | /* |
|---|
| 3 | 3 | * mtu3_dr.h - dual role switch and host glue layer header |
|---|
| 4 | 4 | * |
|---|
| .. | .. |
|---|
| 71 | 71 | #if IS_ENABLED(CONFIG_USB_MTU3_DUAL_ROLE) |
|---|
| 72 | 72 | int ssusb_otg_switch_init(struct ssusb_mtk *ssusb); |
|---|
| 73 | 73 | void ssusb_otg_switch_exit(struct ssusb_mtk *ssusb); |
|---|
| 74 | +void ssusb_mode_switch(struct ssusb_mtk *ssusb, int to_host); |
|---|
| 74 | 75 | int ssusb_set_vbus(struct otg_switch_mtk *otg_sx, int is_on); |
|---|
| 75 | 76 | void ssusb_set_force_mode(struct ssusb_mtk *ssusb, |
|---|
| 76 | 77 | enum mtu3_dr_force_mode mode); |
|---|
| .. | .. |
|---|
| 85 | 86 | static inline void ssusb_otg_switch_exit(struct ssusb_mtk *ssusb) |
|---|
| 86 | 87 | {} |
|---|
| 87 | 88 | |
|---|
| 89 | +static inline void ssusb_mode_switch(struct ssusb_mtk *ssusb, int to_host) |
|---|
| 90 | +{} |
|---|
| 91 | + |
|---|
| 88 | 92 | static inline int ssusb_set_vbus(struct otg_switch_mtk *otg_sx, int is_on) |
|---|
| 89 | 93 | { |
|---|
| 90 | 94 | return 0; |
|---|