Mauro Carvalho Chehab | 0e30144 | 2011-07-20 19:52:49 -0300 | [diff] [blame] | 1 | #ifndef __MT2063_H__ |
| 2 | #define __MT2063_H__ |
| 3 | |
Mauro Carvalho Chehab | 0e30144 | 2011-07-20 19:52:49 -0300 | [diff] [blame] | 4 | #include "dvb_frontend.h" |
| 5 | |
Mauro Carvalho Chehab | 0e30144 | 2011-07-20 19:52:49 -0300 | [diff] [blame] | 6 | struct mt2063_config { |
| 7 | u8 tuner_address; |
| 8 | u32 refclock; |
| 9 | }; |
| 10 | |
Peter Senna Tschudin | 7b34be7 | 2013-01-20 01:32:56 -0300 | [diff] [blame^] | 11 | #if IS_ENABLED(CONFIG_MEDIA_TUNER_MT2063) |
Mauro Carvalho Chehab | b675668 | 2011-07-20 20:58:25 -0300 | [diff] [blame] | 12 | struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe, |
| 13 | struct mt2063_config *config, |
| 14 | struct i2c_adapter *i2c); |
Mauro Carvalho Chehab | 223c7b0 | 2011-07-20 19:48:59 -0300 | [diff] [blame] | 15 | |
| 16 | #else |
| 17 | |
Mauro Carvalho Chehab | 0e30144 | 2011-07-20 19:52:49 -0300 | [diff] [blame] | 18 | static inline struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe, |
Mauro Carvalho Chehab | b675668 | 2011-07-20 20:58:25 -0300 | [diff] [blame] | 19 | struct mt2063_config *config, |
| 20 | struct i2c_adapter *i2c) |
Mauro Carvalho Chehab | 223c7b0 | 2011-07-20 19:48:59 -0300 | [diff] [blame] | 21 | { |
| 22 | printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__); |
| 23 | return NULL; |
| 24 | } |
| 25 | |
Mauro Carvalho Chehab | 4dca4ef | 2011-07-20 20:15:01 -0300 | [diff] [blame] | 26 | #endif /* CONFIG_DVB_MT2063 */ |
Mauro Carvalho Chehab | 0e30144 | 2011-07-20 19:52:49 -0300 | [diff] [blame] | 27 | |
Mauro Carvalho Chehab | 4dca4ef | 2011-07-20 20:15:01 -0300 | [diff] [blame] | 28 | #endif /* __MT2063_H__ */ |