summaryrefslogtreecommitdiff
path: root/include/linux/regmap.h
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2015-09-25 20:01:09 +0300
committerMark Brown <broonie@kernel.org>2015-09-25 20:01:09 +0300
commit536b5603e7a3c75c7d2e0c1c56980690909b12d3 (patch)
treec48d8fe596cf3e6a3392d9688c27cd695d90a23a /include/linux/regmap.h
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f (diff)
parentb4fe8ba7a310da6a2b99e3abe67c7815198cde49 (diff)
downloadlinux-536b5603e7a3c75c7d2e0c1c56980690909b12d3.tar.xz
Merge tag 'ib-mfd-regmap-v4.3' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd into regmap-irq-hdr
Immutable branch between MFD and Regmap due for v4.3
Diffstat (limited to 'include/linux/regmap.h')
-rw-r--r--include/linux/regmap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/regmap.h b/include/linux/regmap.h
index 8fc0bfd8edc4..f6226976e158 100644
--- a/include/linux/regmap.h
+++ b/include/linux/regmap.h
@@ -791,6 +791,9 @@ struct regmap_irq {
unsigned int mask;
};
+#define REGMAP_IRQ_REG(_irq, _off, _mask) \
+ [_irq] = { .reg_offset = (_off), .mask = (_mask) }
+
/**
* Description of a generic regmap irq_chip. This is not intended to
* handle every possible interrupt controller, but it should handle a