regmap: add reg_sequence helpers
Add helper to make it easier to define a reg_sequence array. Signed-off-by: Marco Felsch <m.felsch@pengutronix.de> Link: https://lore.kernel.org/r/20200402084111.30123-1-m.felsch@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Родитель
8f3d9f3542
Коммит
bd3ddb4957
|
@ -71,6 +71,13 @@ struct reg_sequence {
|
|||
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) \
|
||||
regmap_update_bits_base(map, reg, mask, val, NULL, false, false)
|
||||
#define regmap_update_bits_async(map, reg, mask, val)\
|
||||
|
|
Загрузка…
Ссылка в новой задаче