Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b4fe8ba7 authored by Qipeng Zha's avatar Qipeng Zha Committed by Lee Jones
Browse files

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: default avatarQipeng Zha <qipeng.zha@intel.com>
Acked-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 1f93e4a9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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