| regulator_set_current_limit(9) - phpMan
REGULATOR_SET_CURREN(9) API reference REGULATOR_SET_CURREN(9)
NAME
regulator_set_current_limit - set regulator output current limit
SYNOPSIS
int regulator_set_current_limit(struct regulator * regulator, int min_uA, int max_uA);
ARGUMENTS
regulator
regulator source
min_uA
Minimum supported current in uA
max_uA
Maximum supported current in uA
DESCRIPTION
Sets current sink to the desired output current. This can be set during any regulator
state. IOW, regulator can be disabled or enabled.
If the regulator is enabled then the current will change to the new value immediately
otherwise if the regulator is disabled the regulator will output at the new current when
enabled.
NOTE
Regulator system constraints must be set for this regulator before calling this function
otherwise this call will fail.
AUTHORS
Liam Girdwood <lrg AT slimlogic.uk>
Author.
Mark Brown <broonie AT opensource.com>
Wolfson Microelectronics,
Author.
COPYRIGHT
Kernel Hackers Manual 4.8. January 2017 REGULATOR_SET_CURREN(9)
|