Merge drm/drm-next into drm-intel-gt-next
[linux-2.6-microblaze.git] / drivers / media / tuners / tda9887.h
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 */
4
5 #ifndef __TDA9887_H__
6 #define __TDA9887_H__
7
8 #include <linux/i2c.h>
9 #include <media/dvb_frontend.h>
10
11 /* ------------------------------------------------------------------------ */
12 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_TDA9887)
13 extern struct dvb_frontend *tda9887_attach(struct dvb_frontend *fe,
14                                            struct i2c_adapter *i2c_adap,
15                                            u8 i2c_addr);
16 #else
17 static inline struct dvb_frontend *tda9887_attach(struct dvb_frontend *fe,
18                                                   struct i2c_adapter *i2c_adap,
19                                                   u8 i2c_addr)
20 {
21         printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
22         return NULL;
23 }
24 #endif
25
26 #endif /* __TDA9887_H__ */