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>
This commit is contained in:
parent
9fabe24e9b
commit
195af65ca9
5 changed files with 69 additions and 1 deletions
|
@ -23,6 +23,7 @@ struct spi_device;
|
|||
/* An enum of all the supported cache types */
|
||||
enum regcache_type {
|
||||
REGCACHE_NONE,
|
||||
REGCACHE_INDEXED,
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue