Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / media / dvb-frontends / l64781.h
blob41d55f627fd28640b37cbcf09af6e6b3f9a90df2
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 driver for LSI L64781 COFDM demodulator
5 Copyright (C) 2001 Holger Waechtler for Convergence Integrated Media GmbH
6 Marko Kohtala <marko.kohtala@luukku.com>
9 */
11 #ifndef L64781_H
12 #define L64781_H
14 #include <linux/dvb/frontend.h>
16 struct l64781_config
18 /* the demodulator's i2c address */
19 u8 demod_address;
22 #if IS_REACHABLE(CONFIG_DVB_L64781)
23 extern struct dvb_frontend* l64781_attach(const struct l64781_config* config,
24 struct i2c_adapter* i2c);
25 #else
26 static inline struct dvb_frontend* l64781_attach(const struct l64781_config* config,
27 struct i2c_adapter* i2c)
29 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
30 return NULL;
32 #endif // CONFIG_DVB_L64781
34 #endif // L64781_H