diff options
author | Enric Balletbo i Serra <[email protected]> | 2019-05-07 11:52:48 +0200 |
---|---|---|
committer | Sebastian Reichel <[email protected]> | 2019-06-28 17:28:27 +0200 |
commit | 2ffb500d824bbe6535c64d3e7e9971cca0db0a3e (patch) | |
tree | 5fcbf30bd0b5b075ebebb8f048b2ea1b8066f91b /tools/perf/scripts/python/Perf-Trace-Util | |
parent | a4496d52b3430cb3c4c16d03cdd5f4ee97ad1241 (diff) |
power: supply: cros: allow to set input voltage and current limit
This patch allows reading and writing the input voltage and current
limit through the POWER_SUPPLY_PROP_INPUT_VOLTAGE_LIMIT and
POWER_SUPPLY_PROP_INPUT_CURRENT_LIMIT sysfs properties. This allows
userspace to see current values and to re-configure these values at
runtime based on system-level knowledge or user input.
By default there is no limit, this is reported as a -1 when reading from
userspace. Writing a value will set the current or voltage limit in uA
or uV, and writing any negative value will remove that limit.
Signed-off-by: Enric Balletbo i Serra <[email protected]>
Reviewed-by: Guenter Roeck <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions