drivers: sm5714_typec.c: Specify enum typec_port_type
This commit is contained in:
parent
7fc0858b6e
commit
48e91d7106
1 changed files with 2 additions and 2 deletions
|
@ -1253,12 +1253,12 @@ static int sm5714_port_type_set(struct typec_port *port,
|
||||||
usbpd_data->typec_data_role, port_type);
|
usbpd_data->typec_data_role, port_type);
|
||||||
|
|
||||||
reinit_completion(&usbpd_data->typec_reverse_completion);
|
reinit_completion(&usbpd_data->typec_reverse_completion);
|
||||||
if (port_type == TYPEC_PORT_DFP) {
|
if (port_type == (enum typec_port_type)TYPEC_PORT_DFP) {
|
||||||
pr_info("%s : try reversing, from UFP(Sink) to DFP(Source)\n",
|
pr_info("%s : try reversing, from UFP(Sink) to DFP(Source)\n",
|
||||||
__func__);
|
__func__);
|
||||||
usbpd_data->typec_try_state_change = TRY_ROLE_SWAP_TYPE;
|
usbpd_data->typec_try_state_change = TRY_ROLE_SWAP_TYPE;
|
||||||
sm5714_rprd_mode_change(usbpd_data, TYPE_C_ATTACH_DFP);
|
sm5714_rprd_mode_change(usbpd_data, TYPE_C_ATTACH_DFP);
|
||||||
} else if (port_type == TYPEC_PORT_UFP) {
|
} else if (port_type == (enum typec_port_type)TYPEC_PORT_UFP) {
|
||||||
pr_info("%s : try reversing, from DFP(Source) to UFP(Sink)\n",
|
pr_info("%s : try reversing, from DFP(Source) to UFP(Sink)\n",
|
||||||
__func__);
|
__func__);
|
||||||
#if IS_ENABLED(CONFIG_PDIC_NOTIFIER)
|
#if IS_ENABLED(CONFIG_PDIC_NOTIFIER)
|
||||||
|
|
Loading…
Add table
Reference in a new issue