Path: blob/master/drivers/media/common/tuners/mc44s803.h
15112 views
/*1* Driver for Freescale MC44S803 Low Power CMOS Broadband Tuner2*3* Copyright (c) 2009 Jochen Friedrich <[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*14* 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 MC44S803_H22#define MC44S803_H2324struct dvb_frontend;25struct i2c_adapter;2627struct mc44s803_config {28u8 i2c_address;29u8 dig_out;30};3132#if defined(CONFIG_MEDIA_TUNER_MC44S803) || \33(defined(CONFIG_MEDIA_TUNER_MC44S803_MODULE) && defined(MODULE))34extern struct dvb_frontend *mc44s803_attach(struct dvb_frontend *fe,35struct i2c_adapter *i2c, struct mc44s803_config *cfg);36#else37static inline struct dvb_frontend *mc44s803_attach(struct dvb_frontend *fe,38struct i2c_adapter *i2c, struct mc44s803_config *cfg)39{40printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);41return NULL;42}43#endif /* CONFIG_MEDIA_TUNER_MC44S803 */4445#endif464748