diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-02-06 18:01:35 +0000 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-02-06 19:24:35 +0000 |
commit | 847fb6fdf58c0ef4c207d2853a043a4da3db9c76 (patch) | |
tree | 70c75bb5f00233ab80e49ed3e4d1bae03f456734 /drivers/base | |
parent | aa795d129246cb4c973076e3242b8a2eb374f1ef (diff) | |
download | kernel_goldelico_gta04-847fb6fdf58c0ef4c207d2853a043a4da3db9c76.zip kernel_goldelico_gta04-847fb6fdf58c0ef4c207d2853a043a4da3db9c76.tar.gz kernel_goldelico_gta04-847fb6fdf58c0ef4c207d2853a043a4da3db9c76.tar.bz2 |
regmap: Don't use bitfields for booleans
This was a cut'n'paste from some older code.
Since we're about to add debugfs support don't do the obvious thing and
use bool, use u32 instead (which debugfs has been using since time
immemorial).
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/regmap/internal.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h index e33f1be..e93d7b7 100644 --- a/drivers/base/regmap/internal.h +++ b/drivers/base/regmap/internal.h @@ -66,16 +66,16 @@ struct regmap { unsigned int num_reg_defaults_raw; /* if set, only the cache is modified not the HW */ - unsigned int cache_only:1; + u32 cache_only; /* if set, only the HW is modified not the cache */ - unsigned int cache_bypass:1; + u32 cache_bypass; /* if set, remember to free reg_defaults_raw */ - unsigned int cache_free:1; + bool cache_free; struct reg_default *reg_defaults; const void *reg_defaults_raw; void *cache; - bool cache_dirty; + u32 cache_dirty; }; struct regcache_ops { |