aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/regmap/internal.h
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2011-11-16 10:28:16 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-11-16 12:34:53 -0500
commite5e3b8abeda1cf45f5a079458dbc267952694c7a (patch)
tree46bd89885c027beaa4d549ea5f1d79f8a9279433 /drivers/base/regmap/internal.h
parentc2b1ecd13c6a7b19f1c0c48b68f61ab083f3ec3f (diff)
regmap: Move initialization of regcache related fields to regcache_init
Move the initialization regcache related fields of the regmap struct to regcache_init. This allows us to keep regmap and regcache code better separated. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/base/regmap/internal.h')
-rw-r--r--drivers/base/regmap/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h
index 6483e0bda0cf..954f7b73238f 100644
--- a/drivers/base/regmap/internal.h
+++ b/drivers/base/regmap/internal.h
@@ -106,7 +106,7 @@ static inline void regmap_debugfs_exit(struct regmap *map) { }
106#endif 106#endif
107 107
108/* regcache core declarations */ 108/* regcache core declarations */
109int regcache_init(struct regmap *map); 109int regcache_init(struct regmap *map, const struct regmap_config *config);
110void regcache_exit(struct regmap *map); 110void regcache_exit(struct regmap *map);
111int regcache_read(struct regmap *map, 111int regcache_read(struct regmap *map,
112 unsigned int reg, unsigned int *value); 112 unsigned int reg, unsigned int *value);