usb: typec: tcpci: Add set_vbus tcpci callback
authorBadhri Jagan Sridharan <badhri@google.com>
Thu, 8 Oct 2020 06:15:43 +0000 (23:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Oct 2020 07:27:42 +0000 (09:27 +0200)
commitb9358a068490d0a590a860a75869853f0b6e8aee
tree50330aa29cd1c187aa938a57b423a57f24e34ae6
parent58ea326b228c3525b234adcc49ba94e44ebf529b
usb: typec: tcpci: Add set_vbus tcpci callback

set_vbus callback allows TCPC which are TCPCI based, however,
does not support turning on sink and source mode through
Command.SinkVbus and Command.SourceVbusDefaultVoltage.

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-3-badhri@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpci.c
drivers/usb/typec/tcpm/tcpci.h