Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9353e70 authored by Mark Brown's avatar Mark Brown
Browse files

regmap: Fix rbtree block base in sync



Otherwise we'll end up running with bogus register numbers.

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent a0941e56
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -379,7 +379,7 @@ static int regcache_rbtree_sync(struct regmap *map, unsigned int min,
		if (rbnode->base_reg + rbnode->blklen < min)
			continue;

		if (min < rbnode->base_reg + rbnode->blklen)
		if (min > rbnode->base_reg)
			base = min - rbnode->base_reg;
		else
			base = 0;