diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2016-02-15 00:23:55 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-19 11:15:56 -0500 |
commit | 28972eaa34f384eef5e33f36e00d8fa21ca44375 (patch) | |
tree | 113f7dc3080e7fd4744a89438ae14cd4bec48191 /include | |
parent | 89d8d4b833b0b29e0e95bd0cd51e80f5ee7a6b0a (diff) |
regmap: add regmap_field_update_bits_base()
This patch adds new regmap_field_update_bits_base() which is using
regmap_update_bits_base().
Current regmap_field_xxx() can be merged into it by macro.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/regmap.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 4d8e1edb4407..23bf7657e485 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h | |||
@@ -773,9 +773,11 @@ void devm_regmap_field_free(struct device *dev, struct regmap_field *field); | |||
773 | 773 | ||
774 | int regmap_field_read(struct regmap_field *field, unsigned int *val); | 774 | int regmap_field_read(struct regmap_field *field, unsigned int *val); |
775 | int regmap_field_write(struct regmap_field *field, unsigned int val); | 775 | int regmap_field_write(struct regmap_field *field, unsigned int val); |
776 | int regmap_field_update_bits_base(struct regmap_field *field, | ||
777 | unsigned int mask, unsigned int val, | ||
778 | bool *change, bool async, bool force); | ||
776 | int regmap_field_update_bits(struct regmap_field *field, | 779 | int regmap_field_update_bits(struct regmap_field *field, |
777 | unsigned int mask, unsigned int val); | 780 | unsigned int mask, unsigned int val); |
778 | |||
779 | int regmap_fields_write(struct regmap_field *field, unsigned int id, | 781 | int regmap_fields_write(struct regmap_field *field, unsigned int id, |
780 | unsigned int val); | 782 | unsigned int val); |
781 | int regmap_fields_force_write(struct regmap_field *field, unsigned int id, | 783 | int regmap_fields_force_write(struct regmap_field *field, unsigned int id, |
@@ -954,6 +956,14 @@ static inline int regmap_write_bits(struct regmap *map, unsigned int reg, | |||
954 | return -EINVAL; | 956 | return -EINVAL; |
955 | } | 957 | } |
956 | 958 | ||
959 | static inline int regmap_field_update_bits_base(struct regmap_field *field, | ||
960 | unsigned int mask, unsigned int val, | ||
961 | bool *change, bool async, bool force) | ||
962 | { | ||
963 | WARN_ONCE(1, "regmap API is disabled"); | ||
964 | return -EINVAL; | ||
965 | } | ||
966 | |||
957 | static inline int regmap_get_val_bytes(struct regmap *map) | 967 | static inline int regmap_get_val_bytes(struct regmap *map) |
958 | { | 968 | { |
959 | WARN_ONCE(1, "regmap API is disabled"); | 969 | WARN_ONCE(1, "regmap API is disabled"); |