MLK-16013-9 usb: typec: add interface to get port type and role
authorLi Jun <jun.li@nxp.com>
Wed, 26 Jul 2017 14:08:14 +0000 (22:08 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:18 +0000 (15:36 -0500)
commitaea7a2684e2075453d71ca90d442491a762a6c16
tree94251d0b46c33c9b2f2474c20816b9fafccddbdc
parent9e70adce26e97d7aec6a3fd6e0acc85af8995f86
MLK-16013-9 usb: typec: add interface to get port type and role

Add interface to get typec port type and default power role from
dt. To validate a correct setting is specified, add TYPEC_PORT_TYPE_UNKNOWN
and TYPEC_ROLE_UNKNOWN for typec_port_type and typec_role enum.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
drivers/usb/typec/typec.c
include/linux/usb/typec.h