OSDN Git Service

usb: typec: add API to get typec basic port power and data config
authorLi Jun <jun.li@nxp.com>
Tue, 26 Jun 2018 23:45:23 +0000 (07:45 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 10:49:47 +0000 (19:49 +0900)
commit9c90e02434b66f9bcfc5c9a91a808eee5b7aa21b
tree481c88c6937a0d133264e78ff9a3106d3bfe6ae1
parent5e85a04c8c0d271d7561a770b85741f186398868
usb: typec: add API to get typec basic port power and data config

This patch adds 3 APIs to get the typec port power and data type,
and preferred power role by its name string.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/class.c
include/linux/usb/typec.h