Path: blob/master/drivers/media/dvb/frontends/cx22700.h
15112 views
/*1Conexant CX22700 DVB OFDM demodulator driver23Copyright (C) 2001-2002 Convergence Integrated Media GmbH4Holger Waechtler <[email protected]>56This program is free software; you can redistribute it and/or modify7it under the terms of the GNU General Public License as published by8the Free Software Foundation; either version 2 of the License, or9(at your option) any later version.1011This program is distributed in the hope that it will be useful,12but WITHOUT ANY WARRANTY; without even the implied warranty of13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14GNU General Public License for more details.1516You should have received a copy of the GNU General Public License17along with this program; if not, write to the Free Software18Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.1920*/2122#ifndef CX22700_H23#define CX22700_H2425#include <linux/dvb/frontend.h>2627struct cx22700_config28{29/* the demodulator's i2c address */30u8 demod_address;31};3233#if defined(CONFIG_DVB_CX22700) || (defined(CONFIG_DVB_CX22700_MODULE) && defined(MODULE))34extern struct dvb_frontend* cx22700_attach(const struct cx22700_config* config,35struct i2c_adapter* i2c);36#else37static inline struct dvb_frontend* cx22700_attach(const struct cx22700_config* config,38struct i2c_adapter* i2c)39{40printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);41return NULL;42}43#endif // CONFIG_DVB_CX227004445#endif // CX22700_H464748