diff options
author | Hans de Goede <[email protected]> | 2017-08-30 11:48:10 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2017-08-31 18:26:10 +0200 |
commit | 4046c06fb11cbb5d90324da2df7e2acafcb9826c (patch) | |
tree | e0a4c755095cd76905bc99fdc6f3e64b33713d7b /lib/test_overflow.c | |
parent | 382099d6bcffa13ea729ad5c8f0ae67fafbe563f (diff) |
staging: typec: fusb302: Export current-limit through a power_supply class dev
The fusb302 Type-C port-controller cannot control the current-limit
directly, so we need to exported the limit so that another driver
(e.g. the charger driver) can pick the limit up and configure the
system accordingly.
The power-supply subsys already provides infrastructure for this,
power-supply devices have the notion of being supplied by another
power-supply and have properties through which we can export the
current-limit.
Register a power_supply and export the current-limit through the
power_supply's current-max property.
Cc: "Yueyao (Nathan) Zhu" <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions