Path: blob/master/drivers/media/common/tuners/tuner-simple.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 __TUNER_SIMPLE_H__17#define __TUNER_SIMPLE_H__1819#include <linux/i2c.h>20#include "dvb_frontend.h"2122#if defined(CONFIG_MEDIA_TUNER_SIMPLE) || (defined(CONFIG_MEDIA_TUNER_SIMPLE_MODULE) && defined(MODULE))23extern struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe,24struct i2c_adapter *i2c_adap,25u8 i2c_addr,26unsigned int type);27#else28static inline struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe,29struct i2c_adapter *i2c_adap,30u8 i2c_addr,31unsigned int type)32{33printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);34return NULL;35}36#endif3738#endif /* __TUNER_SIMPLE_H__ */394041