Manu Abraham | 0036020 | 2007-09-22 13:30:09 -0300 | [diff] [blame] | 1 | #ifndef __TDA8261_H |
| 2 | #define __TDA8261_H |
| 3 | |
| 4 | enum tda8261_step { |
| 5 | TDA8261_STEP_2000 = 0, /* 2000 kHz */ |
| 6 | TDA8261_STEP_1000, /* 1000 kHz */ |
| 7 | TDA8261_STEP_500, /* 500 kHz */ |
| 8 | TDA8261_STEP_250, /* 250 kHz */ |
| 9 | TDA8261_STEP_125 /* 125 kHz */ |
| 10 | }; |
| 11 | |
| 12 | struct tda8261_config { |
| 13 | // u8 buf[16]; |
| 14 | u8 addr; |
| 15 | enum tda8261_step step_size; |
| 16 | }; |
| 17 | |
Manu Abraham | ae9902d | 2007-10-08 18:51:54 -0300 | [diff] [blame^] | 18 | #if defined(CONFIG_DVB_TDA8261) || (defined(CONFIG_DVB_TDA8261_MODULE) && defined(MODULE)) |
| 19 | |
Manu Abraham | 41e1151 | 2007-09-22 21:28:11 -0300 | [diff] [blame] | 20 | extern struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe, |
| 21 | const struct tda8261_config *config, |
| 22 | struct i2c_adapter *i2c); |
Manu Abraham | 0036020 | 2007-09-22 13:30:09 -0300 | [diff] [blame] | 23 | |
Manu Abraham | ae9902d | 2007-10-08 18:51:54 -0300 | [diff] [blame^] | 24 | #else |
| 25 | |
| 26 | static inline struct dvb_frontend *tda8261_attach(struct dvb_frontend *fe, |
| 27 | const struct tda8261_config *config, |
| 28 | struct i2c_adapter *i2c) |
| 29 | { |
| 30 | printk(KERN_WARNING "%s: Driver disabled by Kconfig\n", __func__); |
| 31 | return NULL; |
| 32 | } |
| 33 | |
| 34 | #endif //CONFIG_DVB_TDA8261 |
| 35 | |
Manu Abraham | 0036020 | 2007-09-22 13:30:09 -0300 | [diff] [blame] | 36 | #endif// __TDA8261_H |