0001
0002
0003
0004
0005 #ifndef __TDA9887_H__
0006 #define __TDA9887_H__
0007
0008 #include <linux/i2c.h>
0009 #include <media/dvb_frontend.h>
0010
0011
0012 #if IS_REACHABLE(CONFIG_MEDIA_TUNER_TDA9887)
0013 extern struct dvb_frontend *tda9887_attach(struct dvb_frontend *fe,
0014 struct i2c_adapter *i2c_adap,
0015 u8 i2c_addr);
0016 #else
0017 static inline struct dvb_frontend *tda9887_attach(struct dvb_frontend *fe,
0018 struct i2c_adapter *i2c_adap,
0019 u8 i2c_addr)
0020 {
0021 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0022 return NULL;
0023 }
0024 #endif
0025
0026 #endif