Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Mauro Carvalho Chehab | 0e30144 | 2011-07-20 19:52:49 -0300 | [diff] [blame] | 2 | #ifndef __MT2063_H__ |
| 3 | #define __MT2063_H__ |
| 4 | |
Mauro Carvalho Chehab | 0e30144 | 2011-07-20 19:52:49 -0300 | [diff] [blame] | 5 | #include "dvb_frontend.h" |
| 6 | |
Mauro Carvalho Chehab | 0e30144 | 2011-07-20 19:52:49 -0300 | [diff] [blame] | 7 | struct mt2063_config { |
| 8 | u8 tuner_address; |
| 9 | u32 refclock; |
| 10 | }; |
| 11 | |
Arnd Bergmann | 9b17452 | 2015-02-18 14:12:42 -0300 | [diff] [blame] | 12 | #if IS_REACHABLE(CONFIG_MEDIA_TUNER_MT2063) |
Mauro Carvalho Chehab | b675668 | 2011-07-20 20:58:25 -0300 | [diff] [blame] | 13 | struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe, |
| 14 | struct mt2063_config *config, |
| 15 | struct i2c_adapter *i2c); |
Mauro Carvalho Chehab | 223c7b0 | 2011-07-20 19:48:59 -0300 | [diff] [blame] | 16 | |
| 17 | #else |
| 18 | |
Mauro Carvalho Chehab | 0e30144 | 2011-07-20 19:52:49 -0300 | [diff] [blame] | 19 | static inline struct dvb_frontend *mt2063_attach(struct dvb_frontend *fe, |
Mauro Carvalho Chehab | b675668 | 2011-07-20 20:58:25 -0300 | [diff] [blame] | 20 | struct mt2063_config *config, |
| 21 | struct i2c_adapter *i2c) |
Mauro Carvalho Chehab | 223c7b0 | 2011-07-20 19:48:59 -0300 | [diff] [blame] | 22 | { |
| 23 | printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__); |
| 24 | return NULL; |
| 25 | } |
| 26 | |
Mauro Carvalho Chehab | 4dca4ef | 2011-07-20 20:15:01 -0300 | [diff] [blame] | 27 | #endif /* CONFIG_DVB_MT2063 */ |
Mauro Carvalho Chehab | 0e30144 | 2011-07-20 19:52:49 -0300 | [diff] [blame] | 28 | |
Mauro Carvalho Chehab | 4dca4ef | 2011-07-20 20:15:01 -0300 | [diff] [blame] | 29 | #endif /* __MT2063_H__ */ |