diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-06-06 19:46:23 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-06-07 14:28:21 +0100 |
commit | 354662dc66f264b26c3e094162e0fad8715d009f (patch) | |
tree | 793f76edfa85ecba6b1bd29f21de4d65bbd3e170 /drivers/base/regmap | |
parent | f6841d41a8a36a4c5cbfee39280845f83fed6a87 (diff) |
regmap: cache: Use correct type of the rb_for_each() parameter
Compiler is not happy:
regcache.c:410:9: warning: Using plain integer as NULL pointer
Replace integer 0 by NULL.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240606164717.3031107-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/base/regmap')
-rw-r--r-- | drivers/base/regmap/regcache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c index 2e41cb12b8e2..bd7462c54271 100644 --- a/drivers/base/regmap/regcache.c +++ b/drivers/base/regmap/regcache.c @@ -407,7 +407,7 @@ out: * have gone out of sync, force writes of all the paging * registers. */ - rb_for_each(node, 0, &map->range_tree, rbtree_all) { + rb_for_each(node, NULL, &map->range_tree, rbtree_all) { struct regmap_range_node *this = rb_entry(node, struct regmap_range_node, node); |