Path: blob/master/drivers/media/common/tuners/mt2266.h
15112 views
/*1* Driver for Microtune MT2266 "Direct conversion low power broadband tuner"2*3* Copyright (c) 2007 Olivier DANET <[email protected]>4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU General Public License for more details.14*/1516#ifndef MT2266_H17#define MT2266_H1819struct dvb_frontend;20struct i2c_adapter;2122struct mt2266_config {23u8 i2c_address;24};2526#if defined(CONFIG_MEDIA_TUNER_MT2266) || (defined(CONFIG_MEDIA_TUNER_MT2266_MODULE) && defined(MODULE))27extern struct dvb_frontend * mt2266_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2266_config *cfg);28#else29static inline struct dvb_frontend * mt2266_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2266_config *cfg)30{31printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);32return NULL;33}34#endif // CONFIG_MEDIA_TUNER_MT22663536#endif373839