Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003     Conexant CX22700 DVB OFDM demodulator driver
0004 
0005     Copyright (C) 2001-2002 Convergence Integrated Media GmbH
0006     Holger Waechtler <holger@convergence.de>
0007 
0008 
0009 */
0010 
0011 #ifndef CX22700_H
0012 #define CX22700_H
0013 
0014 #include <linux/dvb/frontend.h>
0015 
0016 struct cx22700_config
0017 {
0018     /* the demodulator's i2c address */
0019     u8 demod_address;
0020 };
0021 
0022 #if IS_REACHABLE(CONFIG_DVB_CX22700)
0023 extern struct dvb_frontend* cx22700_attach(const struct cx22700_config* config,
0024                        struct i2c_adapter* i2c);
0025 #else
0026 static inline struct dvb_frontend* cx22700_attach(const struct cx22700_config* config,
0027                        struct i2c_adapter* i2c)
0028 {
0029     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0030     return NULL;
0031 }
0032 #endif // CONFIG_DVB_CX22700
0033 
0034 #endif // CX22700_H