]>
Commit | Line | Data |
---|---|---|
74ba9207 | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
1da177e4 LT |
2 | /* |
3 | Conexant 22702 DVB OFDM demodulator driver | |
4 | ||
5 | based on: | |
9101e622 | 6 | Alps TDMB7 DVB OFDM demodulator driver |
1da177e4 LT |
7 | |
8 | Copyright (C) 2001-2002 Convergence Integrated Media GmbH | |
9 | Holger Waechtler <holger@convergence.de> | |
10 | ||
6d897616 | 11 | Copyright (C) 2004 Steven Toth <stoth@linuxtv.org> |
1da177e4 | 12 | |
1da177e4 LT |
13 | |
14 | */ | |
15 | ||
16 | #ifndef CX22702_H | |
17 | #define CX22702_H | |
18 | ||
19 | #include <linux/dvb/frontend.h> | |
20 | ||
4e3599a5 | 21 | struct cx22702_config { |
1da177e4 LT |
22 | /* the demodulator's i2c address */ |
23 | u8 demod_address; | |
24 | ||
f46dbb05 PB |
25 | /* serial/parallel output */ |
26 | #define CX22702_PARALLEL_OUTPUT 0 | |
27 | #define CX22702_SERIAL_OUTPUT 1 | |
28 | u8 output_mode; | |
1da177e4 LT |
29 | }; |
30 | ||
9b174527 | 31 | #if IS_REACHABLE(CONFIG_DVB_CX22702) |
4e3599a5 ST |
32 | extern struct dvb_frontend *cx22702_attach( |
33 | const struct cx22702_config *config, | |
34 | struct i2c_adapter *i2c); | |
102a342b | 35 | #else |
4e3599a5 ST |
36 | static inline struct dvb_frontend *cx22702_attach( |
37 | const struct cx22702_config *config, | |
38 | struct i2c_adapter *i2c) | |
102a342b | 39 | { |
271ddbf7 | 40 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
102a342b AQ |
41 | return NULL; |
42 | } | |
4e3599a5 | 43 | #endif |
1da177e4 | 44 | |
4e3599a5 | 45 | #endif |