diff options
author | Adam Thomson <[email protected]> | 2018-04-23 15:11:00 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2018-04-25 14:20:20 +0200 |
commit | f2a8aa053c1761232ce561e4fa725f02b8bd13fd (patch) | |
tree | fae6318a59c2cc64b73fc436a22c64f5b29bf6e2 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | cf45004195efea6b479a1d710d6fc21c2b19353e (diff) |
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 <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions