diff options
| author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2015-05-21 12:42:43 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2015-05-22 07:19:18 -0400 |
| commit | 668abc729fcb9d034eccadf63166d2c76cd645d1 (patch) | |
| tree | 600b49220d650e05eda81702ae08b6a838f94f9f /include/linux/regmap.h | |
| parent | b787f68c36d49bb1d9236f403813641efa74a031 (diff) | |
regmap: Introduce regmap_get_max_register
This patch introduces regmap_get_max_register() function which would be
used by the infrastructures like nvmem framework built on top of
regmap.
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.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 116655d92269..2d87deda79cd 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h | |||
| @@ -433,6 +433,7 @@ int regmap_update_bits_check_async(struct regmap *map, unsigned int reg, | |||
| 433 | unsigned int mask, unsigned int val, | 433 | unsigned int mask, unsigned int val, |
| 434 | bool *change); | 434 | bool *change); |
| 435 | int regmap_get_val_bytes(struct regmap *map); | 435 | int regmap_get_val_bytes(struct regmap *map); |
| 436 | int regmap_get_max_register(struct regmap *map); | ||
| 436 | int regmap_async_complete(struct regmap *map); | 437 | int regmap_async_complete(struct regmap *map); |
| 437 | bool regmap_can_raw_write(struct regmap *map); | 438 | bool regmap_can_raw_write(struct regmap *map); |
| 438 | 439 | ||
| @@ -676,6 +677,12 @@ static inline int regmap_get_val_bytes(struct regmap *map) | |||
| 676 | return -EINVAL; | 677 | return -EINVAL; |
| 677 | } | 678 | } |
| 678 | 679 | ||
| 680 | static inline int regmap_get_max_register(struct regmap *map) | ||
| 681 | { | ||
| 682 | WARN_ONCE(1, "regmap API is disabled"); | ||
| 683 | return -EINVAL; | ||
| 684 | } | ||
| 685 | |||
| 679 | static inline int regcache_sync(struct regmap *map) | 686 | static inline int regcache_sync(struct regmap *map) |
| 680 | { | 687 | { |
| 681 | WARN_ONCE(1, "regmap API is disabled"); | 688 | WARN_ONCE(1, "regmap API is disabled"); |
