regmap: Add RAM backed register map

Add a register map that is a simple array of memory, for use in
KUnit testing of the framework. This is not exposed in regmap.h
since I can't think of a non-test use case, it is purely for use
internally. To facilitate testing we track if registers have been
read or written to.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230324-regmap-kunit-v2-1-b208801dc2c8@kernel.org
This commit is contained in:
Mark Brown 2023-03-26 15:11:12 +01:00
commit f6352424e3
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0
4 changed files with 108 additions and 0 deletions