usb: typec: Separate the definitions for data and power roles
authorVipul Kumar <vipul_kumar@mentor.com>
Thu, 10 Jan 2019 07:04:15 +0000 (12:34 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit1ad464fe767895b44057ec05ecca6603c2a801f7
tree27eb1068baf564a6b26305c9b6f8ecb8955a64c6
parent3fb8a06472032692a40c543bd9cef2eb7cb4e2bf
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>
drivers/usb/typec/tcpm.c