summaryrefslogtreecommitdiffstats
path: root/include/mfd/pca9450.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mfd/pca9450.h')
-rw-r--r--include/mfd/pca9450.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/mfd/pca9450.h b/include/mfd/pca9450.h
index 256f661911..7071c3a9da 100644
--- a/include/mfd/pca9450.h
+++ b/include/mfd/pca9450.h
@@ -6,6 +6,8 @@
#ifndef PCA9450_H_
#define PCA9450_H_
+#include <linux/regmap.h>
+
enum {
PCA9450_REG_DEV_ID = 0x00,
PCA9450_INT1 = 0x01,
@@ -52,4 +54,16 @@ enum {
PCA9450_REG_NUM,
};
+#ifdef CONFIG_MFD_PCA9450
+
+int pca9450_register_init_callback(void(*callback)(struct regmap *map));
+
+#else
+
+static inline int pca9450_register_init_callback(void(*callback)(struct regmap *map))
+{
+ return -ENODEV;
+}
+#endif
+
#endif