Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / media / dvb-frontends / cx24117.h
bloba613a33dbbe78f43680282b41cb2e829967af1af
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 Conexant cx24117/cx24132 - Dual DVBS/S2 Satellite demod/tuner driver
5 Copyright (C) 2013 Luis Alves <ljalvs@gmail.com>
6 (based on cx24116.h by Steven Toth)
8 */
10 #ifndef CX24117_H
11 #define CX24117_H
13 #include <linux/dvb/frontend.h>
15 struct cx24117_config {
16 /* the demodulator's i2c address */
17 u8 demod_address;
20 #if IS_REACHABLE(CONFIG_DVB_CX24117)
21 extern struct dvb_frontend *cx24117_attach(
22 const struct cx24117_config *config,
23 struct i2c_adapter *i2c);
24 #else
25 static inline struct dvb_frontend *cx24117_attach(
26 const struct cx24117_config *config,
27 struct i2c_adapter *i2c)
29 dev_warn(&i2c->dev, "%s: driver disabled by Kconfig\n", __func__);
30 return NULL;
32 #endif
34 #endif /* CX24117_H */