aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2017-08-30 11:48:10 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-31 18:26:10 +0200
commit4046c06fb11cbb5d90324da2df7e2acafcb9826c (patch)
treee0a4c755095cd76905bc99fdc6f3e64b33713d7b /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parent382099d6bcffa13ea729ad5c8f0ae67fafbe563f (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" <yueyao@google.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions