linux/drivers/usb/typec
Adam Thomson f2a8aa053c typec: tcpm: Represent source supply through power_supply
This commit adds a power_supply class instance to represent a
PD source's voltage and current properties. This provides an
interface for reading these properties from user-space or other
drivers.

For PPS enabled Sources, this also provides write access to set
the current and voltage and allows for swapping between standard
PDO and PPS APDO.

As this represents a superset of the information provided in the
fusb302 driver, the power_supply instance in that code is removed
as part of this change, so reverting the commit titled
'typec: tcpm: Represent source supply through power_supply class'

Signed-off-by: Adam Thomson <Adam.Thomson.Opensource@diasemi.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-25 14:20:20 +02:00
..
fusb302 typec: tcpm: Represent source supply through power_supply 2018-04-25 14:20:20 +02:00
mux usb: typec: driver for Pericom PI3USB30532 Type-C cross switch 2018-03-22 13:49:28 +01:00
ucsi usb: typec: Separate the definitions for data and power roles 2018-03-22 13:40:10 +01:00
class.c usb: typec: Separate the definitions for data and power roles 2018-03-22 13:40:10 +01:00
Kconfig typec: tcpm: Represent source supply through power_supply 2018-04-25 14:20:20 +02:00
Makefile usb: typec: driver for Pericom PI3USB30532 Type-C cross switch 2018-03-22 13:49:28 +01:00
mux.c usb: typec: API for controlling USB Type-C Multiplexers 2018-03-22 13:40:10 +01:00
tcpm.c typec: tcpm: Represent source supply through power_supply 2018-04-25 14:20:20 +02:00
tps6598x.c usb: typec: Separate the definitions for data and power roles 2018-03-22 13:40:10 +01:00
typec_wcove.c usb: typec: wcove: remove max_snk_* for sink config 2018-04-22 16:06:26 +02:00