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)
committerSimone Willett <swillett@nvidia.com>
Tue, 3 Jul 2012 22:03:33 +0000 (15:03 -0700)
commit6d80ad162f51dfae870b32889de1d42bd51ccb4f
tree81b5f29015500246fca15d3ff2fd6375c96139ed
parent51978f469bcd8e5c59932938a72a8f20e7d5c73f
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>
(cherry picked from commit 022f926a2401c80ed36ebb48a1bffbac08f34d98)
Change-Id: I68a59c8fd8a67062dac0eceaefcc85ed597f4a29
Reviewed-on: http://git-master/r/111484
Reviewed-by: Automatic_Commit_Validation_User
Tested-by: Pradeep Goudagunta <pgoudagunta@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/base/regmap/regmap-irq.c
include/linux/regmap.h