diff options
| author | Stephen Boyd <sboyd@codeaurora.org> | 2015-06-11 20:37:03 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2015-06-12 08:05:11 -0400 |
| 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 { | |||
| 75 | * | 75 | * |
| 76 | * @min_uA: Smallest current consumers may set. | 76 | * @min_uA: Smallest current consumers may set. |
| 77 | * @max_uA: Largest current consumers may set. | 77 | * @max_uA: Largest current consumers may set. |
| 78 | * @system_load: Load that isn't captured by any consumer requests. | ||
| 78 | * | 79 | * |
| 79 | * @valid_modes_mask: Mask of modes which may be configured by consumers. | 80 | * @valid_modes_mask: Mask of modes which may be configured by consumers. |
| 80 | * @valid_ops_mask: Operations which may be performed by consumers. | 81 | * @valid_ops_mask: Operations which may be performed by consumers. |
| @@ -112,6 +113,8 @@ struct regulation_constraints { | |||
| 112 | int min_uA; | 113 | int min_uA; |
| 113 | int max_uA; | 114 | int max_uA; |
| 114 | 115 | ||
| 116 | int system_load; | ||
| 117 | |||
| 115 | /* valid regulator operating modes for this machine */ | 118 | /* valid regulator operating modes for this machine */ |
| 116 | unsigned int valid_modes_mask; | 119 | unsigned int valid_modes_mask; |
| 117 | 120 | ||
