diff options
Diffstat (limited to 'drivers/base/regmap/internal.h')
-rw-r--r-- | drivers/base/regmap/internal.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/base/regmap/internal.h b/drivers/base/regmap/internal.h index 6d409350f50a..95d46a5ea7e7 100644 --- a/drivers/base/regmap/internal.h +++ b/drivers/base/regmap/internal.h | |||
@@ -189,6 +189,13 @@ int regcache_write(struct regmap *map, | |||
189 | unsigned int reg, unsigned int value); | 189 | unsigned int reg, unsigned int value); |
190 | int regcache_sync(struct regmap *map); | 190 | int regcache_sync(struct regmap *map); |
191 | 191 | ||
192 | static inline const void *regcache_get_val_addr(struct regmap *map, | ||
193 | const void *base, | ||
194 | unsigned int idx) | ||
195 | { | ||
196 | return base + (map->cache_word_size * idx); | ||
197 | } | ||
198 | |||
192 | unsigned int regcache_get_val(struct regmap *map, const void *base, | 199 | unsigned int regcache_get_val(struct regmap *map, const void *base, |
193 | unsigned int idx); | 200 | unsigned int idx); |
194 | bool regcache_set_val(struct regmap *map, void *base, unsigned int idx, | 201 | bool regcache_set_val(struct regmap *map, void *base, unsigned int idx, |