diff --git a/include/linux/regmap.h b/include/linux/regmap.h index 8fc0bfd8edc4434fc79fda8591323d6be41f0645..f6226976e15880120a7aa518a03ff52b903ac057 100644 --- a/include/linux/regmap.h +++ b/include/linux/regmap.h @@ -791,6 +791,9 @@ struct regmap_irq { unsigned int mask; }; +#define REGMAP_IRQ_REG(_irq, _off, _mask) \ + [_irq] = { .reg_offset = (_off), .mask = (_mask) } + /** * Description of a generic regmap irq_chip. This is not intended to * handle every possible interrupt controller, but it should handle a