usb: typec: Separate the definitions for data and power roles
As per 'commit
ceeb162500c3 ("usb: typec: Separate the definitions for
data and power roles")', make changes to fix the compilation warnings.
drivers/usb/typec/tcpm.c: In function ‘tcpm_qos_handling’:
drivers/usb/typec/tcpm.c:892:28: warning: comparison between ‘enum typec_port_type’ and ‘enum typec_port_data’ [-Wenum-compare]
if (port->typec_caps.type == TYPEC_PORT_UFP)
^~
drivers/usb/typec/tcpm.c:894:33: warning: comparison between ‘enum typec_port_type’ and ‘enum typec_port_data’ [-Wenum-compare]
else if (port->typec_caps.type == TYPEC_PORT_DFP)
^~
drivers/usb/typec/tcpci.c: In function ‘tcpci_parse_config’:
drivers/usb/typec/tcpci.c:701:17: warning: comparison between ‘enum typec_port_type’ and ‘enum typec_port_data’ [-Wenum-compare]
if (tcfg->type == TYPEC_PORT_UFP)
^~
drivers/usb/typec/tcpci.c:726:17: warning: comparison between ‘enum typec_port_type’ and ‘enum typec_port_data’ [-Wenum-compare]
if (tcfg->type == TYPEC_PORT_DFP)
^~
drivers/usb/typec/tcpci.c:816:15: warning: comparison between ‘enum typec_port_type’ and ‘enum typec_port_data’ [-Wenum-compare]
tcfg->type == TYPEC_PORT_UFP)
^~
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>