aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/regmap.h
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2015-05-21 12:42:54 -0400
committerMark Brown <broonie@kernel.org>2015-05-22 07:19:21 -0400
commita2f776cbb8271d7149784207da0b0c51e8b1847c (patch)
tree3d9af717987966cda8ff7e2c8e026ad1b3f48aeb /include/linux/regmap.h
parent668abc729fcb9d034eccadf63166d2c76cd645d1 (diff)
regmap: Introduce regmap_get_reg_stride
This patch introduces regmap_get_reg_stride() function which would be used by the infrastructures like nvmem framework built on top of regmap. Mostly this function would be used for sanity checks on inputs within such infrastructure. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux/regmap.h')
-rw-r--r--include/linux/regmap.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index 2d87deda79cd..59c55ea0f0b5 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -434,6 +434,7 @@ int regmap_update_bits_check_async(struct regmap *map, unsigned int reg,
434 bool *change); 434 bool *change);
435int regmap_get_val_bytes(struct regmap *map); 435int regmap_get_val_bytes(struct regmap *map);
436int regmap_get_max_register(struct regmap *map); 436int regmap_get_max_register(struct regmap *map);
437int regmap_get_reg_stride(struct regmap *map);
437int regmap_async_complete(struct regmap *map); 438int regmap_async_complete(struct regmap *map);
438bool regmap_can_raw_write(struct regmap *map); 439bool regmap_can_raw_write(struct regmap *map);
439 440
@@ -683,6 +684,12 @@ static inline int regmap_get_max_register(struct regmap *map)
683 return -EINVAL; 684 return -EINVAL;
684} 685}
685 686
687static inline int regmap_get_reg_stride(struct regmap *map)
688{
689 WARN_ONCE(1, "regmap API is disabled");
690 return -EINVAL;
691}
692
686static inline int regcache_sync(struct regmap *map) 693static inline int regcache_sync(struct regmap *map)
687{ 694{
688 WARN_ONCE(1, "regmap API is disabled"); 695 WARN_ONCE(1, "regmap API is disabled");