]> git.baikalelectronics.ru Git - kernel.git/commit
regmap: Add the indexed cache support
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Mon, 19 Sep 2011 13:34:01 +0000 (14:34 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 19 Sep 2011 18:06:32 +0000 (19:06 +0100)
commit0972d3f9c91e11d7b596f982e0f3e4fe030e37bb
treeaf51cbe2b5d5f521993372bbad647293688e7654
parentddaa35e1dded5d4e0f54d28736a5cab95d1dabff
regmap: Add the indexed cache support

This is the simplest form of a cache available in regcache.  Any
registers whose default value is 0 are ignored.  If any of those
registers are modified in the future, they will be placed in the
cache on demand.  The cache layout is essentially using the provided
register defaults by the regcache core directly and does not re-map
it to another representation.

Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/Makefile
drivers/base/regmap/internal.h
drivers/base/regmap/regcache-indexed.c [new file with mode: 0644]
drivers/base/regmap/regcache.c
include/linux/regmap.h