Message ID | 1453407851-8039-1-git-send-email-broonie@kernel.org |
---|---|
State | New |
Headers | show |
Series | [1/2] regulator: core: Use a bitfield for continuous_voltage_range | expand |
diff --git a/include/linux/regulator/driver.h b/include/linux/regulator/driver.h index 16ac9e108806..3ac0f306f033 100644 --- a/include/linux/regulator/driver.h +++ b/include/linux/regulator/driver.h @@ -281,7 +281,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;
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> --- include/linux/regulator/driver.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.0.rc3