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

Unverified Commit 45abcc55 authored by Charles Keepax's avatar Charles Keepax Committed by Mark Brown
Browse files

regmap: Use helper function for register offset



As a helper function exists for calculating register offsets lets use
that rather than open coding with the reg_stride.

Signed-off-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 9ae27a8d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1993,7 +1993,7 @@ int regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val,
				return -EINVAL;
			}

			ret = regmap_write(map, reg + (i * map->reg_stride),
			ret = regmap_write(map, reg + regmap_get_offset(map, i),
					   ival);
			if (ret)
				return ret;