diff options
author | Dimitris Papastamos <dp@opensource.wolfsonmicro.com> | 2011-09-19 14:34:01 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-09-19 19:06:32 +0100 |
commit | 195af65ca92179ac2b524d35d732dc6fecec2744 (patch) | |
tree | af51cbe2b5d5f521993372bbad647293688e7654 /drivers/base/regmap/internal.h | |
parent | 9fabe24e9b1af84509b842731d2beaf85e66681e (diff) | |
download | talos-op-linux-195af65ca92179ac2b524d35d732dc6fecec2744.tar.gz talos-op-linux-195af65ca92179ac2b524d35d732dc6fecec2744.zip |
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/internal.h')
-rw-r--r-- | drivers/base/regmap/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h index 615f5581d5db..5bd5759efd5c 100644 --- a/drivers/base/regmap/internal.h +++ b/drivers/base/regmap/internal.h @@ -118,4 +118,5 @@ int regcache_lookup_reg(struct regmap *map, unsigned int reg); int regcache_insert_reg(struct regmap *map, unsigned int reg, unsigned int val); +extern struct regcache_ops regcache_indexed_ops; #endif |