Commit bd3ddb49 authored by Marco Felsch's avatar Marco Felsch Committed by Mark Brown

regmap: add reg_sequence helpers

Add helper to make it easier to define a reg_sequence array.
Signed-off-by: default avatarMarco Felsch <m.felsch@pengutronix.de>
Link: https://lore.kernel.org/r/20200402084111.30123-1-m.felsch@pengutronix.deSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 8f3d9f35
...@@ -71,6 +71,13 @@ struct reg_sequence { ...@@ -71,6 +71,13 @@ struct reg_sequence {
unsigned int delay_us; unsigned int delay_us;
}; };
#define REG_SEQ(_reg, _def, _delay_us) { \
.reg = _reg, \
.def = _def, \
.delay_us = _delay_us, \
}
#define REG_SEQ0(_reg, _def) REG_SEQ(_reg, _def, 0)
#define regmap_update_bits(map, reg, mask, val) \ #define regmap_update_bits(map, reg, mask, val) \
regmap_update_bits_base(map, reg, mask, val, NULL, false, false) regmap_update_bits_base(map, reg, mask, val, NULL, false, false)
#define regmap_update_bits_async(map, reg, mask, val)\ #define regmap_update_bits_async(map, reg, mask, val)\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment