Antti Palosaari | 88b38be | 2013-01-07 09:37:30 -0300 | [diff] [blame] | 1 | /* |
| 2 | * ITE Tech IT9137 silicon tuner driver |
| 3 | * |
| 4 | * Copyright (C) 2011 Malcolm Priestley (tvboxspy@gmail.com) |
| 5 | * IT9137 Copyright (C) ITE Tech Inc. |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | * |
| 12 | * This program is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | * |
| 16 | * GNU General Public License for more details. |
| 17 | * |
| 18 | * You should have received a copy of the GNU General Public License |
| 19 | * along with this program; if not, write to the Free Software |
| 20 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.= |
| 21 | */ |
| 22 | |
| 23 | #ifndef IT913X_H |
| 24 | #define IT913X_H |
| 25 | |
| 26 | #include "dvb_frontend.h" |
| 27 | |
Antti Palosaari | 88b38be | 2013-01-07 09:37:30 -0300 | [diff] [blame] | 28 | #if defined(CONFIG_MEDIA_TUNER_IT913X) || \ |
| 29 | (defined(CONFIG_MEDIA_TUNER_IT913X_MODULE) && defined(MODULE)) |
| 30 | extern struct dvb_frontend *it913x_attach(struct dvb_frontend *fe, |
Antti Palosaari | 44af747 | 2013-02-28 00:14:06 -0300 | [diff] [blame] | 31 | struct i2c_adapter *i2c_adap, |
| 32 | u8 i2c_addr, |
| 33 | u8 config); |
Antti Palosaari | 88b38be | 2013-01-07 09:37:30 -0300 | [diff] [blame] | 34 | #else |
| 35 | static inline struct dvb_frontend *it913x_attach(struct dvb_frontend *fe, |
Antti Palosaari | 44af747 | 2013-02-28 00:14:06 -0300 | [diff] [blame] | 36 | struct i2c_adapter *i2c_adap, |
| 37 | u8 i2c_addr, |
| 38 | u8 config) |
Antti Palosaari | 88b38be | 2013-01-07 09:37:30 -0300 | [diff] [blame] | 39 | { |
| 40 | pr_warn("%s: driver disabled by Kconfig\n", __func__); |
| 41 | return NULL; |
| 42 | } |
| 43 | #endif |
| 44 | |
| 45 | #endif |