summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAndrey Gusakov <andrey.gusakov@cogentembedded.com>2018-04-06 19:33:24 +0300
committerSascha Hauer <s.hauer@pengutronix.de>2018-04-10 09:04:26 +0200
commit07329ded178ba6594e575a8d80cfa0448004e331 (patch)
tree58e391cece0af389bcd07191feeb1f2b0825fa45 /include
parent9b8ed3d83581b2f8cce77442f2ad7eb649b896c3 (diff)
downloadbarebox-07329ded178ba6594e575a8d80cfa0448004e331.tar.gz
barebox-07329ded178ba6594e575a8d80cfa0448004e331.tar.xz
aiodev: mc13xxx: add adc support
Signed-off-by: Andrey Gusakov <andrey.gusakov@cogentembedded.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/mfd/mc13xxx.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/mfd/mc13xxx.h b/include/mfd/mc13xxx.h
index 66ce2eaba8..b38918084d 100644
--- a/include/mfd/mc13xxx.h
+++ b/include/mfd/mc13xxx.h
@@ -215,4 +215,13 @@ static inline int mc13xxx_register_init_callback(void(*callback)(struct mc13xxx
}
#endif
+#ifdef CONFIG_MC13XXX_ADC
+int mc13xxx_adc_probe(struct device_d *dev, struct mc13xxx *mc_dev);
+#else
+static inline int mc13xxx_adc_probe(struct device_d *dev, struct mc13xxx *mc_dev)
+{
+ return 0;
+}
+#endif
+
#endif /* __MFD_MC13XXX_H */