131c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky/* 231c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky This program is free software; you can redistribute it and/or modify 331c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky it under the terms of the GNU General Public License as published by 431c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky the Free Software Foundation; either version 2 of the License, or 531c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky (at your option) any later version. 631c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky 731c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky This program is distributed in the hope that it will be useful, 831c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky but WITHOUT ANY WARRANTY; without even the implied warranty of 931c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1031c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky GNU General Public License for more details. 1131c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky 1231c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky You should have received a copy of the GNU General Public License 1331c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky along with this program; if not, write to the Free Software 1431c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 1531c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky*/ 1631c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky 1731c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky#ifndef __TDA9887_H__ 1831c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky#define __TDA9887_H__ 1931c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky 208ca4083b50752d588f8b8b1e5e5776fb17d00304Michael Krufky#include <linux/i2c.h> 218ca4083b50752d588f8b8b1e5e5776fb17d00304Michael Krufky#include "dvb_frontend.h" 2231c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky 2331c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky/* ------------------------------------------------------------------------ */ 24149ef72deeba57078216c9fa678baff392295853Mauro Carvalho Chehab#if defined(CONFIG_MEDIA_TUNER_TDA9887) || (defined(CONFIG_MEDIA_TUNER_TDA9887_MODULE) && defined(MODULE)) 258ca4083b50752d588f8b8b1e5e5776fb17d00304Michael Krufkyextern struct dvb_frontend *tda9887_attach(struct dvb_frontend *fe, 268ca4083b50752d588f8b8b1e5e5776fb17d00304Michael Krufky struct i2c_adapter *i2c_adap, 278ca4083b50752d588f8b8b1e5e5776fb17d00304Michael Krufky u8 i2c_addr); 2831c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky#else 298ca4083b50752d588f8b8b1e5e5776fb17d00304Michael Krufkystatic inline struct dvb_frontend *tda9887_attach(struct dvb_frontend *fe, 308ca4083b50752d588f8b8b1e5e5776fb17d00304Michael Krufky struct i2c_adapter *i2c_adap, 318ca4083b50752d588f8b8b1e5e5776fb17d00304Michael Krufky u8 i2c_addr) 3231c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky{ 337e28adb2497f6b873516163e2d29210c11777613Harvey Harrison printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 348ca4083b50752d588f8b8b1e5e5776fb17d00304Michael Krufky return NULL; 3531c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky} 3631c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky#endif 3731c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky 3831c9584c0b071dfa7a75db6e21cc727f728f97b0Michael Krufky#endif /* __TDA9887_H__ */ 39