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)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 12 Jul 2012 04:42:19 +0000 (09:42 +0530)
commit7258825422ed26f13b27bf3344706d06b02417b2
tree94cfdf0e4f1804a5bef7a44c1073a475a4d9a809
parentca477e5dfbd843b3ac395bd14fdfe985e969ec2c
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