diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2015-06-11 17:37:03 -0700 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-06-12 13:05:11 +0100 |
commit | 22a10bca280073f81e9e2d9fed6f90a3bcf00236 (patch) | |
tree | 2952174336d871fbd47996291c811aac64199295 /include/linux/regulator | |
parent | b787f68c36d49bb1d9236f403813641efa74a031 (diff) |
regulator: Add system_load constraint
Some regulators have a fixed load that isn't captured by
consumers that the kernel knows about. Add a constraint to
support this.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regulator')
-rw-r--r-- | include/linux/regulator/machine.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/regulator/machine.h b/include/linux/regulator/machine.h index b07562e082c4..01526559c8c3 100644 --- a/include/linux/regulator/machine.h +++ b/include/linux/regulator/machine.h @@ -75,6 +75,7 @@ struct regulator_state { * * @min_uA: Smallest current consumers may set. * @max_uA: Largest current consumers may set. + * @system_load: Load that isn't captured by any consumer requests. * * @valid_modes_mask: Mask of modes which may be configured by consumers. * @valid_ops_mask: Operations which may be performed by consumers. @@ -112,6 +113,8 @@ struct regulation_constraints { int min_uA; int max_uA; + int system_load; + /* valid regulator operating modes for this machine */ unsigned int valid_modes_mask; |