diff options
| author | Mark Brown <broonie@linaro.org> | 2014-03-12 19:03:58 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@linaro.org> | 2014-03-12 19:03:58 -0400 |
| commit | da8ab21cfea80655a0f7bbbc3f2fa0975970b8cb (patch) | |
| tree | 66d5a4804f0a15b5dc224bb2de9b0d9cb208eb91 /include/linux/regmap.h | |
| parent | c6c124225f9551d78a19c291a2e204618f7e1e92 (diff) | |
| parent | 5c1d5f091dc39eecf9a34a8be01492d14c23ad91 (diff) | |
Merge remote-tracking branch 'asoc/topic/core' into asoc-next
Diffstat (limited to 'include/linux/regmap.h')
| -rw-r--r-- | include/linux/regmap.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 4149f1a9b003..3e1a2e4a92ad 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h | |||
| @@ -423,6 +423,8 @@ bool regmap_check_range_table(struct regmap *map, unsigned int reg, | |||
| 423 | 423 | ||
| 424 | int regmap_register_patch(struct regmap *map, const struct reg_default *regs, | 424 | int regmap_register_patch(struct regmap *map, const struct reg_default *regs, |
| 425 | int num_regs); | 425 | int num_regs); |
| 426 | int regmap_parse_val(struct regmap *map, const void *buf, | ||
| 427 | unsigned int *val); | ||
| 426 | 428 | ||
| 427 | static inline bool regmap_reg_in_range(unsigned int reg, | 429 | static inline bool regmap_reg_in_range(unsigned int reg, |
| 428 | const struct regmap_range *range) | 430 | const struct regmap_range *range) |
| @@ -695,6 +697,13 @@ static inline int regmap_register_patch(struct regmap *map, | |||
| 695 | return -EINVAL; | 697 | return -EINVAL; |
| 696 | } | 698 | } |
| 697 | 699 | ||
| 700 | static inline int regmap_parse_val(struct regmap *map, const void *buf, | ||
| 701 | unsigned int *val) | ||
| 702 | { | ||
| 703 | WARN_ONCE(1, "regmap API is disabled"); | ||
| 704 | return -EINVAL; | ||
| 705 | } | ||
| 706 | |||
| 698 | static inline struct regmap *dev_get_regmap(struct device *dev, | 707 | static inline struct regmap *dev_get_regmap(struct device *dev, |
| 699 | const char *name) | 708 | const char *name) |
| 700 | { | 709 | { |
