Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / media / dvb-frontends / tda8083.h
blob3a671ec3f45e714ef9b104ca1da70319d4b7c7e2
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 Driver for Grundig 29504-491, a Philips TDA8083 based QPSK Frontend
5 Copyright (C) 2001 Convergence Integrated Media GmbH
7 written by Ralph Metzler <ralph@convergence.de>
9 adoption to the new DVB frontend API and diagnostic ioctl's
10 by Holger Waechtler <holger@convergence.de>
15 #ifndef TDA8083_H
16 #define TDA8083_H
18 #include <linux/dvb/frontend.h>
20 struct tda8083_config
22 /* the demodulator's i2c address */
23 u8 demod_address;
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)
33 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
34 return NULL;
36 #endif // CONFIG_DVB_TDA8083
38 #endif // TDA8083_H