提交 b4fe8ba7 编写于 作者: Q Qipeng Zha 提交者: Lee Jones

regmap: Add generic macro to define regmap_irq

Add REGMAP_IRQ_REG macro in regmap.h to define regmap_irq
structure easily for other driver module.
Signed-off-by: NQipeng Zha <qipeng.zha@intel.com>
Acked-by: NMark Brown <broonie@kernel.org>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 1f93e4a9
...@@ -791,6 +791,9 @@ struct regmap_irq { ...@@ -791,6 +791,9 @@ struct regmap_irq {
unsigned int mask; 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 * Description of a generic regmap irq_chip. This is not intended to
* handle every possible interrupt controller, but it should handle a * handle every possible interrupt controller, but it should handle a
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册