summaryrefslogtreecommitdiff
path: root/drivers/base/regmap/regcache.c
diff options
context:
space:
mode:
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>2011-09-19 17:34:01 +0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-19 22:06:32 +0400
commit195af65ca92179ac2b524d35d732dc6fecec2744 (patch)
treeaf51cbe2b5d5f521993372bbad647293688e7654 /drivers/base/regmap/regcache.c
parent9fabe24e9b1af84509b842731d2beaf85e66681e (diff)
downloadlinux-195af65ca92179ac2b524d35d732dc6fecec2744.tar.xz
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>
Diffstat (limited to 'drivers/base/regmap/regcache.c')
-rw-r--r--drivers/base/regmap/regcache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c
index 9575e4c5f34a..22b73ec12fd5 100644
--- a/drivers/base/regmap/regcache.c
+++ b/drivers/base/regmap/regcache.c
@@ -16,6 +16,7 @@
#include "internal.h"
static const struct regcache_ops *cache_types[] = {
+ &regcache_indexed_ops,
};
static int regcache_hw_init(struct regmap *map)