regmap: kunit: Fix marking of the range window as volatile
authorMark Brown <broonie@kernel.org>
Mon, 23 Oct 2023 17:19:11 +0000 (18:19 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 26 Oct 2023 13:00:42 +0000 (14:00 +0100)
commitfabe32cc1eca7857837abcb56b242bc4845b7067
treead0bfaef10f926331311f75dbb2948bec531dea5
parentd3601857e14de6369f00ae19564f1d817d175d19
regmap: kunit: Fix marking of the range window as volatile

For some reason the regmap used for testing ranges was not including the
end of the range of paged registers as volatile since it found the end by
counting from the selector register rather than the base of the window.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20231023-regmap-test-window-cache-v1-1-d8a71f441968@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap-kunit.c