]>
Commit | Line | Data |
---|---|---|
74ba9207 | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
1da177e4 LT |
2 | /* |
3 | driver for LSI L64781 COFDM demodulator | |
4 | ||
5 | Copyright (C) 2001 Holger Waechtler for Convergence Integrated Media GmbH | |
9101e622 | 6 | Marko Kohtala <marko.kohtala@luukku.com> |
1da177e4 | 7 | |
1da177e4 LT |
8 | |
9 | */ | |
10 | ||
11 | #ifndef L64781_H | |
12 | #define L64781_H | |
13 | ||
14 | #include <linux/dvb/frontend.h> | |
15 | ||
16 | struct l64781_config | |
17 | { | |
18 | /* the demodulator's i2c address */ | |
19 | u8 demod_address; | |
1da177e4 LT |
20 | }; |
21 | ||
9b174527 | 22 | #if IS_REACHABLE(CONFIG_DVB_L64781) |
1da177e4 LT |
23 | extern struct dvb_frontend* l64781_attach(const struct l64781_config* config, |
24 | struct i2c_adapter* i2c); | |
102a342b AQ |
25 | #else |
26 | static inline struct dvb_frontend* l64781_attach(const struct l64781_config* config, | |
27 | struct i2c_adapter* i2c) | |
28 | { | |
271ddbf7 | 29 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
102a342b AQ |
30 | return NULL; |
31 | } | |
32 | #endif // CONFIG_DVB_L64781 | |
1da177e4 LT |
33 | |
34 | #endif // L64781_H |