diff options
author | Andrey Gusakov <andrey.gusakov@cogentembedded.com> | 2018-04-06 19:33:24 +0300 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-04-10 09:04:26 +0200 |
commit | 07329ded178ba6594e575a8d80cfa0448004e331 (patch) | |
tree | 58e391cece0af389bcd07191feeb1f2b0825fa45 /include/mfd | |
parent | 9b8ed3d83581b2f8cce77442f2ad7eb649b896c3 (diff) | |
download | barebox-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/mfd')
-rw-r--r-- | include/mfd/mc13xxx.h | 9 |
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 */ |