Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003     Driver for Grundig 29504-491, a Philips TDA8083 based QPSK Frontend
0004 
0005     Copyright (C) 2001 Convergence Integrated Media GmbH
0006 
0007     written by Ralph Metzler <ralph@convergence.de>
0008 
0009     adoption to the new DVB frontend API and diagnostic ioctl's
0010     by Holger Waechtler <holger@convergence.de>
0011 
0012 
0013 */
0014 
0015 #ifndef TDA8083_H
0016 #define TDA8083_H
0017 
0018 #include <linux/dvb/frontend.h>
0019 
0020 struct tda8083_config
0021 {
0022     /* the demodulator's i2c address */
0023     u8 demod_address;
0024 };
0025 
0026 #if IS_REACHABLE(CONFIG_DVB_TDA8083)
0027 extern struct dvb_frontend* tda8083_attach(const struct tda8083_config* config,
0028                        struct i2c_adapter* i2c);
0029 #else
0030 static inline struct dvb_frontend* tda8083_attach(const struct tda8083_config* config,
0031                        struct i2c_adapter* i2c)
0032 {
0033     printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
0034     return NULL;
0035 }
0036 #endif // CONFIG_DVB_TDA8083
0037 
0038 #endif // TDA8083_H