]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: Allow devices to specify which registers are accessible
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 20 Jul 2011 21:33:39 +0000 (22:33 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 8 Aug 2011 06:47:00 +0000 (15:47 +0900)
commit264fbdfe244cb4e9c462f8bdaeac0faa4c4195f9
tree35a73d673a94db5a68535e768651e99c9a224229
parentf4d461799d14f1098d2d2b656d13ed3484a25b90
regmap: Allow devices to specify which registers are accessible

This is currently unused but we need to know which registers exist and
their properties in order to implement diagnostics like register map
dumps and the cache features.

We use callbacks partly because properties can vary at runtime (eg, through
access locks on registers) and partly because big switch statements are a
good compromise between readable code and small data size for providing
information on big register maps.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap.c
include/linux/regmap.h