summaryrefslogtreecommitdiffstats
path: root/include/linux/mfd
diff options
context:
space:
mode:
authorSebastian Reichel <sre@kernel.org>2017-03-29 14:18:20 +0200
committerLee Jones <lee.jones@linaro.org>2017-04-11 15:17:52 +0100
commitab781ec0e5e781849bd14291608c8626bac871e1 (patch)
tree354710af8a6c976a3f52d55ef5b1c3d40717804b /include/linux/mfd
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201 (diff)
downloadop-kernel-dev-ab781ec0e5e781849bd14291608c8626bac871e1.zip
op-kernel-dev-ab781ec0e5e781849bd14291608c8626bac871e1.tar.gz
mfd: cpcap: Implement IRQ sense helper
CPCAP can sense if IRQ is currently set or not. This functionality is required for a few subdevices, such as the power button and usb phy modules. Signed-off-by: Sebastian Reichel <sre@kernel.org> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include/linux/mfd')
-rw-r--r--include/linux/mfd/motorola-cpcap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/motorola-cpcap.h b/include/linux/mfd/motorola-cpcap.h
index b4031c2..793aa69 100644
--- a/include/linux/mfd/motorola-cpcap.h
+++ b/include/linux/mfd/motorola-cpcap.h
@@ -290,3 +290,5 @@ static inline int cpcap_get_vendor(struct device *dev,
return 0;
}
+
+extern int cpcap_sense_virq(struct regmap *regmap, int virq);
OpenPOWER on IntegriCloud