regmap: add support for non contiguous status to regmap-irq
authorGraeme Gregory <gg@slimlogic.co.uk>
Mon, 14 May 2012 13:40:43 +0000 (22:40 +0900)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 14 May 2012 16:40:05 +0000 (17:40 +0100)
commit022f926a2401c80ed36ebb48a1bffbac08f34d98
tree7e39452a4312890ae6835f29ef87844467a5b2e0
parent4af8be67fd9989f4e63a8d1defc1895ed0f7d341
regmap: add support for non contiguous status to regmap-irq

In some chips the IRQ status registers are not contiguous in the register
map but spaced at even spaces. This is an easy case to handle with minor
changes. It is assume for this purpose that the stride for status is
equal to the stride for mask/ack registers as well.

Signed-off-by: Graeme Gregory <gg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap-irq.c
include/linux/regmap.h