MLK-21478-25 Revert "MLK-16013-9 usb: typec: add interface to get port type and role"
authorLi Jun <jun.li@nxp.com>
Thu, 18 Apr 2019 09:21:41 +0000 (17:21 +0800)
committerLi Jun <jun.li@nxp.com>
Fri, 19 Apr 2019 00:26:45 +0000 (08:26 +0800)
commit2e93cda49dda37e31c1b0aadda5deed64b37eb0b
tree6f9566d81d7c6a3ef8f8929f77d28ae46980b4c4
parentfff51b9bc480f3f3866fffe3e2850dc9f60dfcef
MLK-21478-25 Revert "MLK-16013-9 usb: typec: add interface to get port type and role"

This reverts commit ccbf06406704c52d5146c9f28cbc8907429b92ce.

As we will use fwnode API to get typec properties, those APIs to be
reverted are not required, this will also fix below build warnings:

drivers/usb/typec/class.c: In function ‘typec_register_port’:
drivers/usb/typec/class.c:1591:2: warning: enumeration value
‘TYPEC_PORT_TYPE_UNKNOWN’ not handled
in switch [-Wswitch]
  switch (cap->type) {
  ^~~~~~

Reported-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
drivers/usb/typec/class.c
include/linux/usb/typec.h