diff options
author | Adam Thomson <Adam.Thomson.Opensource@diasemi.com> | 2018-04-23 15:11:00 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-04-25 14:20:20 +0200 |
commit | f2a8aa053c1761232ce561e4fa725f02b8bd13fd (patch) | |
tree | fae6318a59c2cc64b73fc436a22c64f5b29bf6e2 /net/core/dev_addr_lists.c | |
parent | cf45004195efea6b479a1d710d6fc21c2b19353e (diff) | |
download | linux-f2a8aa053c1761232ce561e4fa725f02b8bd13fd.tar.bz2 |
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>
Diffstat (limited to 'net/core/dev_addr_lists.c')
0 files changed, 0 insertions, 0 deletions