diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2016-02-15 00:25:54 -0500 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-02-25 21:44:00 -0500 |
commit | 489061bba6c655a2f98d39be17df118c0fd09d57 (patch) | |
tree | eabd0fee7548d2e3d4f4d168cf045c65027a22af | |
parent | 48138609135fc9c363f034596e14bff5dbf9f33f (diff) |
regmap: add regmap_field_force_xxx() macros
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | include/linux/regmap.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 7d3d498fd3e8..d36ea89adc50 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h | |||
@@ -76,8 +76,12 @@ struct reg_sequence { | |||
76 | 76 | ||
77 | #define regmap_field_write(field, val) \ | 77 | #define regmap_field_write(field, val) \ |
78 | regmap_field_update_bits_base(field, ~0, val, NULL, false, false) | 78 | regmap_field_update_bits_base(field, ~0, val, NULL, false, false) |
79 | #define regmap_field_force_write(field, val) \ | ||
80 | regmap_field_update_bits_base(field, ~0, val, NULL, false, true) | ||
79 | #define regmap_field_update_bits(field, mask, val)\ | 81 | #define regmap_field_update_bits(field, mask, val)\ |
80 | regmap_field_update_bits_base(field, mask, val, NULL, false, false) | 82 | regmap_field_update_bits_base(field, mask, val, NULL, false, false) |
83 | #define regmap_field_force_update_bits(field, mask, val) \ | ||
84 | regmap_field_update_bits_base(field, mask, val, NULL, false, true) | ||
81 | 85 | ||
82 | #define regmap_fields_write(field, id, val) \ | 86 | #define regmap_fields_write(field, id, val) \ |
83 | regmap_fields_update_bits_base(field, id, ~0, val, NULL, false, false) | 87 | regmap_fields_update_bits_base(field, id, ~0, val, NULL, false, false) |