regmap: add regmap_field_force_xxx() macros
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 15 Feb 2016 05:25:54 +0000 (05:25 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 26 Feb 2016 02:44:00 +0000 (11:44 +0900)
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/regmap.h

index 7d3d498fd3e8ff340808f71f0eafd515d554fc17..d36ea89adc50074003ccc3af29be5f49d098a41c 100644 (file)
@@ -76,8 +76,12 @@ struct reg_sequence {
 
 #define        regmap_field_write(field, val) \
        regmap_field_update_bits_base(field, ~0, val, NULL, false, false)
+#define        regmap_field_force_write(field, val) \
+       regmap_field_update_bits_base(field, ~0, val, NULL, false, true)
 #define        regmap_field_update_bits(field, mask, val)\
        regmap_field_update_bits_base(field, mask, val, NULL, false, false)
+#define        regmap_field_force_update_bits(field, mask, val) \
+       regmap_field_update_bits_base(field, mask, val, NULL, false, true)
 
 #define        regmap_fields_write(field, id, val) \
        regmap_fields_update_bits_base(field, id, ~0, val, NULL, false, false)