diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-07-21 19:25:43 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-07-23 23:40:30 +0100 |
commit | ffb57ee9c0e2a9aae89016ee7b793a666c6aa4a5 (patch) | |
tree | 1dae4dd1346d4a41f25f1e63ad4dc0059e824bcd /drivers/base | |
parent | 9c214af0bd0f43df214470a35bc38dd5602b666f (diff) |
regmap: Fix the type used for a bitmap pointer
Bitmaps should be defined as 'unsigned long', not 'long'.
Fix the type of 'cache_present' is the 'struct regcache_rbtree_node'.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/5600df5003d23da10efcfafbda97ca55776d0d29.1689960321.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/base')
-rw-r--r-- | drivers/base/regmap/regcache-rbtree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regcache-rbtree.c b/drivers/base/regmap/regcache-rbtree.c index 06788965aa29..db716ffd083e 100644 --- a/drivers/base/regmap/regcache-rbtree.c +++ b/drivers/base/regmap/regcache-rbtree.c @@ -22,7 +22,7 @@ struct regcache_rbtree_node { /* block of adjacent registers */ void *block; /* Which registers are present */ - long *cache_present; + unsigned long *cache_present; /* base register handled by this block */ unsigned int base_reg; /* number of registers available in the block */ |