regmap: Convert regmap_irq to use irq_domain
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 13 May 2012 09:59:56 +0000 (10:59 +0100)
committerSimone Willett <swillett@nvidia.com>
Wed, 12 Sep 2012 19:31:03 +0000 (12:31 -0700)
commit4bd56a2926ff656982f9730637b3f0b20b468211
treed28dd5cbbed8dfb19653a6338f4468f56925a920
parentecfd42117c54fa4e50a6ffb3d5fa26f4184a1222
regmap: Convert regmap_irq to use irq_domain

This gets us up to date with the recommended current kernel infrastructure
and should transparently give us device tree interrupt bindings for any
devices using the framework. If an explicit IRQ mapping is passed in then
a legacy interrupt range is created, otherwise a simple linear mapping is
used. Previously a mapping was mandatory so existing drivers should not
be affected.

A function regmap_irq_get_virq() is provided to allow drivers to map
individual IRQs which should be used in preference to the existing
regmap_irq_chip_get_base() which is only valid if a legacy IRQ range is
provided.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 4af8be67fd9989f4e63a8d1defc1895ed0f7d341)

Change-Id: Ib48c2369540f6331fad4df28feedda6e5fd019dc
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/131300
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
drivers/base/regmap/regmap-irq.c
drivers/mfd/Kconfig
include/linux/regmap.h