Path: blob/master/drivers/media/common/tuners/qt1010.h
15112 views
/*1* Driver for Quantek QT1010 silicon tuner2*3* Copyright (C) 2006 Antti Palosaari <[email protected]>4* Aapo Tahkola <[email protected]>5*6* This program is free software; you can redistribute it and/or modify7* it under the terms of the GNU General Public License as published by8* the Free Software Foundation; either version 2 of the License, or9* (at your option) any later version.10*11* This program is distributed in the hope that it will be useful,12* but WITHOUT ANY WARRANTY; without even the implied warranty of13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14* GNU General Public License for more details.15*16* You should have received a copy of the GNU General Public License17* along with this program; if not, write to the Free Software18* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.19*/2021#ifndef QT1010_H22#define QT1010_H2324#include "dvb_frontend.h"2526struct qt1010_config {27u8 i2c_address;28};2930/**31* Attach a qt1010 tuner to the supplied frontend structure.32*33* @param fe frontend to attach to34* @param i2c i2c adapter to use35* @param cfg tuner hw based configuration36* @return fe pointer on success, NULL on failure37*/38#if defined(CONFIG_MEDIA_TUNER_QT1010) || (defined(CONFIG_MEDIA_TUNER_QT1010_MODULE) && defined(MODULE))39extern struct dvb_frontend *qt1010_attach(struct dvb_frontend *fe,40struct i2c_adapter *i2c,41struct qt1010_config *cfg);42#else43static inline struct dvb_frontend *qt1010_attach(struct dvb_frontend *fe,44struct i2c_adapter *i2c,45struct qt1010_config *cfg)46{47printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);48return NULL;49}50#endif // CONFIG_MEDIA_TUNER_QT10105152#endif535455