xref: /linux/drivers/media/dvb-frontends/tda8083.h (revision 955abe0a1b41de5ba61fe4cd614ebc123084d499)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3     Driver for Grundig 29504-491, a Philips TDA8083 based QPSK Frontend
4 
5     Copyright (C) 2001 Convergence Integrated Media GmbH
6 
7     written by Ralph Metzler <ralph@convergence.de>
8 
9     adoption to the new DVB frontend API and diagnostic ioctl's
10     by Holger Waechtler <holger@convergence.de>
11 
12 
13 */
14 
15 #ifndef TDA8083_H
16 #define TDA8083_H
17 
18 #include <linux/dvb/frontend.h>
19 
20 struct tda8083_config
21 {
22 	/* the demodulator's i2c address */
23 	u8 demod_address;
24 };
25 
26 #if IS_REACHABLE(CONFIG_DVB_TDA8083)
27 extern struct dvb_frontend *tda8083_attach(const struct tda8083_config *config,
28 					   struct i2c_adapter *i2c);
29 #else
30 static inline struct dvb_frontend *tda8083_attach(const struct tda8083_config *config,
31 						  struct i2c_adapter *i2c)
32 {
33 	printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
34 	return NULL;
35 }
36 #endif // CONFIG_DVB_TDA8083
37 
38 #endif // TDA8083_H
39