aboutsummaryrefslogtreecommitdiff
path: root/include/linux/mfd/pm8921-core.h
diff options
context:
space:
mode:
authorSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2014-11-10 08:56:16 +0000
committerSrinivas Kandagatla <srinivas.kandagatla@linaro.org>2014-11-10 08:56:16 +0000
commit772ae6a7bf6fb13995e36afffc807cfced9e7535 (patch)
treee6d2ac4e16747e5d1f08100412f417180ba13a6f /include/linux/mfd/pm8921-core.h
parent6b4ca0a3e63d133c89f9dc7b9e9de05d992440e8 (diff)
parenteb0043282fdd5f15b0f99c1a6b0ff36e666cd9b7 (diff)
Merge branch 'tracking-qcomlt-pmic-gpio' into integration-linux-qcomlt
* tracking-qcomlt-pmic-gpio: pinctrl: qcom: fix compiler errors. pinctrl:qcom:ssbi: Enable gpio mode pinctrl: qcom: ssbi-pmic: promote driver to sub system level pinctrl: Introduce pinctrl driver for Qualcomm SSBI PMIC's mfd: pm8921: Expose pm8xxx_read_irq_status pinctrl: Qualcomm SPMI PMIC MPP pin controller driver pinctrl: Qualcomm SPMI PMIC GPIO pin controller driver pinctrl: Device tree bindings for Qualcomm PMIC MPP block pinctrl: Device tree bindings for Qualcomm PMIC GPIO block
Diffstat (limited to 'include/linux/mfd/pm8921-core.h')
-rw-r--r--include/linux/mfd/pm8921-core.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/linux/mfd/pm8921-core.h b/include/linux/mfd/pm8921-core.h
new file mode 100644
index 000000000000..b31d785761f4
--- /dev/null
+++ b/include/linux/mfd/pm8921-core.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2014, Sony Mobile Communications AB
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 and
+ * only version 2 as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __MFD_PM8921_CORE_H
+#define __MFD_PM8921_CORE_H
+
+#include <linux/err.h>
+
+#if IS_ENABLED(CONFIG_MFD_PM8921_CORE)
+
+int pm8xxx_read_irq_status(int irq);
+
+#else
+static inline int pm8xxx_read_irq_status(int irq)
+{
+ return -ENOSYS;
+}
+
+#endif
+
+#endif