aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mfd/motorola-cpcap.h
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/motorola-cpcap.h
parentLinux 4.11-rc1 (diff)
downloadlinux-dev-ab781ec0e5e781849bd14291608c8626bac871e1.tar.xz
linux-dev-ab781ec0e5e781849bd14291608c8626bac871e1.zip
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/motorola-cpcap.h')
-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 b4031c2b2214..793aa695faa0 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);