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>
This commit is contained in:
Mark Brown 2016-01-21 20:19:41 +00:00
parent 07c5c3ad98
commit de4a54c4df
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ struct regulator_desc {
const struct regulator_desc *,
struct regulator_config *);
int id;
bool continuous_voltage_range;
unsigned int continuous_voltage_range:1;
unsigned n_voltages;
const struct regulator_ops *ops;
int irq;