diff mbox

[4/7,RFC] regmap: add regmap_field_force_xxx() functions

Message ID 87vb5xs2wd.wl%kuninori.morimoto.gx@renesas.com (mailing list archive)
State New, archived
Headers show

Commit Message

Kuninori Morimoto Feb. 10, 2016, 2:45 a.m. UTC
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 include/linux/regmap.h | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index 687223d..befa781 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -76,8 +76,12 @@  struct reg_sequence {
 
 #define regmap_field_write(field, val) \
 	_regmap_field_write(field, val, NULL, false, false)
+#define regmap_field_force_write(field, val) \
+	_regmap_field_write(field, val, NULL, false, true)
 #define regmap_field_update_bits(field, mask, val)\
 	_regmap_field_update_bits(field, mask, val, NULL, false, false)
+#define regmap_field_force_update_bits(field, mask, val) \
+	_regmap_field_update_bits(field, mask, val, NULL, false, true)
 
 #define regmap_fields_write(field, id, val)\
 	_regmap_fields_write(field, id, val, NULL, false, false)