Path: blob/master/drivers/media/common/tuners/tda9887.h
15112 views
/*1This program is free software; you can redistribute it and/or modify2it under the terms of the GNU General Public License as published by3the Free Software Foundation; either version 2 of the License, or4(at your option) any later version.56This program is distributed in the hope that it will be useful,7but WITHOUT ANY WARRANTY; without even the implied warranty of8MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the9GNU General Public License for more details.1011You should have received a copy of the GNU General Public License12along with this program; if not, write to the Free Software13Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.14*/1516#ifndef __TDA9887_H__17#define __TDA9887_H__1819#include <linux/i2c.h>20#include "dvb_frontend.h"2122/* ------------------------------------------------------------------------ */23#if defined(CONFIG_MEDIA_TUNER_TDA9887) || (defined(CONFIG_MEDIA_TUNER_TDA9887_MODULE) && defined(MODULE))24extern struct dvb_frontend *tda9887_attach(struct dvb_frontend *fe,25struct i2c_adapter *i2c_adap,26u8 i2c_addr);27#else28static inline struct dvb_frontend *tda9887_attach(struct dvb_frontend *fe,29struct i2c_adapter *i2c_adap,30u8 i2c_addr)31{32printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);33return NULL;34}35#endif3637#endif /* __TDA9887_H__ */383940