usb: typec: tcpci: Add a getter method to retrieve tcpm_port reference
authorBadhri Jagan Sridharan <badhri@google.com>
Thu, 8 Oct 2020 06:15:42 +0000 (23:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Oct 2020 07:27:42 +0000 (09:27 +0200)
commit58ea326b228c3525b234adcc49ba94e44ebf529b
treed5fb47c2c6a084db4832dee99448c0a8c83bc31e
parent9e8586827a7061fdb183e6571fac63af378be013
usb: typec: tcpci: Add a getter method to retrieve tcpm_port reference

Allow chip level drivers to retrieve reference to tcpm_port.

Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20201008061556.1402293-2-badhri@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpci.c
drivers/usb/typec/tcpm/tcpci.h