]>
Commit | Line | Data |
---|---|---|
74ba9207 | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
0d788680 LA |
2 | /* |
3 | Conexant cx24117/cx24132 - Dual DVBS/S2 Satellite demod/tuner driver | |
4 | ||
5 | Copyright (C) 2013 Luis Alves <ljalvs@gmail.com> | |
6 | (based on cx24116.h by Steven Toth) | |
7 | ||
0d788680 LA |
8 | */ |
9 | ||
10 | #ifndef CX24117_H | |
11 | #define CX24117_H | |
12 | ||
0d788680 LA |
13 | #include <linux/dvb/frontend.h> |
14 | ||
15 | struct cx24117_config { | |
16 | /* the demodulator's i2c address */ | |
17 | u8 demod_address; | |
18 | }; | |
19 | ||
9b174527 | 20 | #if IS_REACHABLE(CONFIG_DVB_CX24117) |
0d788680 LA |
21 | extern struct dvb_frontend *cx24117_attach( |
22 | const struct cx24117_config *config, | |
d10e8280 | 23 | struct i2c_adapter *i2c); |
0d788680 LA |
24 | #else |
25 | static inline struct dvb_frontend *cx24117_attach( | |
26 | const struct cx24117_config *config, | |
d10e8280 | 27 | struct i2c_adapter *i2c) |
0d788680 LA |
28 | { |
29 | dev_warn(&i2c->dev, "%s: driver disabled by Kconfig\n", __func__); | |
30 | return NULL; | |
31 | } | |
32 | #endif | |
33 | ||
34 | #endif /* CX24117_H */ |