Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003     Conexant 22702 DVB OFDM demodulator driver
0004 
0005     based on:
0006     Alps TDMB7 DVB OFDM demodulator driver
0007 
0008     Copyright (C) 2001-2002 Convergence Integrated Media GmbH
0009       Holger Waechtler <holger@convergence.de>
0010 
0011     Copyright (C) 2004 Steven Toth <stoth@linuxtv.org>
0012 
0013 
0014 */
0015 
0016 #ifndef CX22702_H
0017 #define CX22702_H
0018 
0019 #include <linux/dvb/frontend.h>
0020 
0021 struct cx22702_config {
0022     /* the demodulator's i2c address */
0023     u8 demod_address;
0024 
0025     /* serial/parallel output */
0026 #define CX22702_PARALLEL_OUTPUT 0
0027 #define CX22702_SERIAL_OUTPUT   1
0028     u8 output_mode;
0029 };
0030 
0031 #if IS_REACHABLE(CONFIG_DVB_CX22702)
0032 extern struct dvb_frontend *cx22702_attach(
0033     const struct cx22702_config *config,
0034     struct i2c_adapter *i2c);
0035 #else
0036 static inline struct dvb_frontend *cx22702_attach(
0037     const struct cx22702_config *config,
0038     struct i2c_adapter *i2c)
0039 {
0040     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0041     return NULL;
0042 }
0043 #endif
0044 
0045 #endif