aboutsummaryrefslogtreecommitdiff
path: root/drivers/platform/mips
diff options
context:
space:
mode:
authorGravatar Enric Balletbo i Serra <enric.balletbo@collabora.com> 2019-05-07 11:52:48 +0200
committerGravatar Sebastian Reichel <sre@kernel.org> 2019-06-28 17:28:27 +0200
commit2ffb500d824bbe6535c64d3e7e9971cca0db0a3e (patch)
tree5fcbf30bd0b5b075ebebb8f048b2ea1b8066f91b /drivers/platform/mips
parentpower: supply: add input power and voltage limit properties (diff)
downloadlinux-2ffb500d824bbe6535c64d3e7e9971cca0db0a3e.tar.gz
linux-2ffb500d824bbe6535c64d3e7e9971cca0db0a3e.tar.bz2
linux-2ffb500d824bbe6535c64d3e7e9971cca0db0a3e.zip
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 <enric.balletbo@collabora.com> Reviewed-by: Guenter Roeck <groeck@chromium.org> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/platform/mips')
0 files changed, 0 insertions, 0 deletions