extern void adc_core_irq_handle(struct adc_host *adc);\r
\r
\r
+#ifdef CONFIG_ADC\r
extern struct adc_client *adc_register(int chn,\r
void (*callback)(struct adc_client *, void *, int), \r
void *callback_param);\r
\r
extern int adc_sync_read(struct adc_client *client);\r
extern int adc_async_read(struct adc_client *client);\r
+#else\r
+static inline struct adc_client *adc_register(int chn,\r
+ void (*callback)(struct adc_client *, void *, int),\r
+ void *callback_param)\r
+{\r
+ return NULL;\r
+}\r
+static inline void adc_unregister(struct adc_client *client) {}\r
+static inline int adc_sync_read(struct adc_client *client) { return -EINVAL; }\r
+static inline int adc_async_read(struct adc_client *client) { return -EINVAL; }\r
+#endif\r
\r
#endif\r
\r