diff options
| author | Mark Brown <broonie@kernel.org> | 2016-01-21 15:19:41 -0500 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2016-04-20 12:38:52 -0400 |
| commit | de4a54c4dfaed0604565c1b27488dce56997acc0 (patch) | |
| tree | 7929c1c1cf1e595937d10a14f85a19dc10156d22 /include/linux/regulator | |
| parent | 07c5c3ad98926dc15d31aa86de62fd4170f2a745 (diff) | |
regulator: core: Use a bitfield for continuous_voltage_range
Using a bitfield enables the compiler to lay out the structure more
efficiently when we have other boolean flags since multiple values can
be included in a single byte.
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regulator')
| -rw-r--r-- | include/linux/regulator/driver.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h index cd271e89a7e6..9ac3f9879576 100644 --- a/include/linux/regulator/driver.h +++ b/include/linux/regulator/driver.h | |||
| @@ -292,7 +292,7 @@ struct regulator_desc { | |||
| 292 | const struct regulator_desc *, | 292 | const struct regulator_desc *, |
| 293 | struct regulator_config *); | 293 | struct regulator_config *); |
| 294 | int id; | 294 | int id; |
| 295 | bool continuous_voltage_range; | 295 | unsigned int continuous_voltage_range:1; |
| 296 | unsigned n_voltages; | 296 | unsigned n_voltages; |
| 297 | const struct regulator_ops *ops; | 297 | const struct regulator_ops *ops; |
| 298 | int irq; | 298 | int irq; |
