MLK-16013-9 usb: typec: add interface to get port type and role
authorLi Jun <jun.li@nxp.com>
Wed, 9 Jan 2019 11:27:21 +0000 (16:57 +0530)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commitccbf06406704c52d5146c9f28cbc8907429b92ce
tree412375b0c7d46d195ba96aea5ceef3a567c017c0
parentc94c58bc5affa7a27f00efb32f785cc92d831c95
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>
During 4.14 rebase renamed to typec_port_types_dt to avoid conflict with
sysfs values.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Rebase it on v4.19
Signed-off-by: Vipul Kumar <vipul_kumar@mentor.com>
drivers/usb/typec/class.c
include/linux/usb/typec.h