regmap: add a new macro:REGMAP_IRQ_REG_LINE(_id, _reg_bits)
authorTony Xie <tony.xie@rock-chips.com>
Tue, 30 Oct 2018 10:07:56 +0000 (18:07 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 14 Nov 2018 22:20:45 +0000 (14:20 -0800)
commit43fac3238c1d9363b2a93d8d56c2be0c29c64e6c
treecd92edbc17e84b16904ec38f23b69b4324e79b41
parent651022382c7f8da46cb4872a545ee1da6d097d2a
regmap: add a new macro:REGMAP_IRQ_REG_LINE(_id, _reg_bits)

if there are lots of irqs for a device and the register addresses for these
irqs is continuous, we can use this macro to initialize regmap_irq value.

Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/linux/regmap.h