aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-05 16:21:05 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-12-05 16:21:05 +0000
commit681ba97d9fbff59f67c71f1d9a88ad0b8ef49d25 (patch)
treea9f2719a6a283bdbca27167aa2803cd8ddae6930 /drivers
parentMerge branch 'topic/cache' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap into regmap-next (diff)
parentregmap: Add irq_base accessor to regmap_irq (diff)
downloadlinux-dev-681ba97d9fbff59f67c71f1d9a88ad0b8ef49d25.tar.xz
linux-dev-681ba97d9fbff59f67c71f1d9a88ad0b8ef49d25.zip
Merge branch 'regmap/irq' into regmap-next
Diffstat (limited to 'drivers')
-rw-r--r--drivers/base/regmap/regmap-irq.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/base/regmap/regmap-irq.c b/drivers/base/regmap/regmap-irq.c
index 6b8a74c3ed18..428836fc5835 100644
--- a/drivers/base/regmap/regmap-irq.c
+++ b/drivers/base/regmap/regmap-irq.c
@@ -287,3 +287,16 @@ void regmap_del_irq_chip(int irq, struct regmap_irq_chip_data *d)
kfree(d);
}
EXPORT_SYMBOL_GPL(regmap_del_irq_chip);
+
+/**
+ * regmap_irq_chip_get_base(): Retrieve interrupt base for a regmap IRQ chip
+ *
+ * Useful for drivers to request their own IRQs.
+ *
+ * @data: regmap_irq controller to operate on.
+ */
+int regmap_irq_chip_get_base(struct regmap_irq_chip_data *data)
+{
+ return data->irq_base;
+}
+EXPORT_SYMBOL_GPL(regmap_irq_chip_get_base);