regmap: Correct offset handling in regmap_volatile_range
commitb8f9a03b741ddfdde4aa8b607fa7d88eb63a6338
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Mon, 12 Feb 2018 18:15:45 +0000 (12 18:15 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 13 Feb 2018 12:26:12 +0000 (13 12:26 +0000)
tree9c7d2814e2bafa8c16f59fd4b1eff36e8f43ee1b
parent7928b2cbe55b2a410a0f5c1f154610059c57b1b2
regmap: Correct offset handling in regmap_volatile_range

The current implementation is broken for regmaps that have a reg_stride,
since it doesn't take the stride into account. Correct this by using the
helper function to calculate the register offset.

Fixes: f01ee60fffa4 ("regmap: implement register striding")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c