]> git.karo-electronics.de Git - linux-beck.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)
commit2e2ae66df37a14c9b33889b243b0ae1352ada1dd
tree35a73d673a94db5a68535e768651e99c9a224229
parentdd898b209577b83283bb62400c96426d7582e5a2
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