Path: blob/master/drivers/media/common/tuners/mt20xx.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 __MT20XX_H__17#define __MT20XX_H__1819#include <linux/i2c.h>20#include "dvb_frontend.h"2122#if defined(CONFIG_MEDIA_TUNER_MT20XX) || (defined(CONFIG_MEDIA_TUNER_MT20XX_MODULE) && defined(MODULE))23extern struct dvb_frontend *microtune_attach(struct dvb_frontend *fe,24struct i2c_adapter* i2c_adap,25u8 i2c_addr);26#else27static inline struct dvb_frontend *microtune_attach(struct dvb_frontend *fe,28struct i2c_adapter* i2c_adap,29u8 i2c_addr)30{31printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);32return NULL;33}34#endif3536#endif /* __MT20XX_H__ */373839