Commit de4a54c4 authored by Mark Brown's avatar Mark Brown

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: default avatarMark Brown <broonie@kernel.org>
parent 07c5c3ad
...@@ -292,7 +292,7 @@ struct regulator_desc { ...@@ -292,7 +292,7 @@ struct regulator_desc {
const struct regulator_desc *, const struct regulator_desc *,
struct regulator_config *); struct regulator_config *);
int id; int id;
bool continuous_voltage_range; unsigned int continuous_voltage_range:1;
unsigned n_voltages; unsigned n_voltages;
const struct regulator_ops *ops; const struct regulator_ops *ops;
int irq; int irq;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment