]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
regmap: Don't use bitfields for booleans
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 6 Feb 2012 18:01:35 +0000 (18:01 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 6 Feb 2012 19:24:35 +0000 (19:24 +0000)
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>
drivers/base/regmap/internal.h

index e33f1be2b29920e986bc7af3d3765ebe6d10a7c6..e93d7b7d1cf90ecdafdf87e4fcb6f6a658c2fed1 100644 (file)
@@ -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 {