174ba9207SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 29a0bf528SMauro Carvalho Chehab /* 39a0bf528SMauro Carvalho Chehab Driver for Grundig 29504-491, a Philips TDA8083 based QPSK Frontend 49a0bf528SMauro Carvalho Chehab 59a0bf528SMauro Carvalho Chehab Copyright (C) 2001 Convergence Integrated Media GmbH 69a0bf528SMauro Carvalho Chehab 79a0bf528SMauro Carvalho Chehab written by Ralph Metzler <ralph@convergence.de> 89a0bf528SMauro Carvalho Chehab 99a0bf528SMauro Carvalho Chehab adoption to the new DVB frontend API and diagnostic ioctl's 109a0bf528SMauro Carvalho Chehab by Holger Waechtler <holger@convergence.de> 119a0bf528SMauro Carvalho Chehab 129a0bf528SMauro Carvalho Chehab 139a0bf528SMauro Carvalho Chehab */ 149a0bf528SMauro Carvalho Chehab 159a0bf528SMauro Carvalho Chehab #ifndef TDA8083_H 169a0bf528SMauro Carvalho Chehab #define TDA8083_H 179a0bf528SMauro Carvalho Chehab 189a0bf528SMauro Carvalho Chehab #include <linux/dvb/frontend.h> 199a0bf528SMauro Carvalho Chehab 209a0bf528SMauro Carvalho Chehab struct tda8083_config 219a0bf528SMauro Carvalho Chehab { 229a0bf528SMauro Carvalho Chehab /* the demodulator's i2c address */ 239a0bf528SMauro Carvalho Chehab u8 demod_address; 249a0bf528SMauro Carvalho Chehab }; 259a0bf528SMauro Carvalho Chehab 269b174527SArnd Bergmann #if IS_REACHABLE(CONFIG_DVB_TDA8083) 279a0bf528SMauro Carvalho Chehab extern struct dvb_frontend* tda8083_attach(const struct tda8083_config* config, 289a0bf528SMauro Carvalho Chehab struct i2c_adapter* i2c); 299a0bf528SMauro Carvalho Chehab #else tda8083_attach(const struct tda8083_config * config,struct i2c_adapter * i2c)309a0bf528SMauro Carvalho Chehabstatic inline struct dvb_frontend* tda8083_attach(const struct tda8083_config* config, 319a0bf528SMauro Carvalho Chehab struct i2c_adapter* i2c) 329a0bf528SMauro Carvalho Chehab { 339a0bf528SMauro Carvalho Chehab printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 349a0bf528SMauro Carvalho Chehab return NULL; 359a0bf528SMauro Carvalho Chehab } 369a0bf528SMauro Carvalho Chehab #endif // CONFIG_DVB_TDA8083 379a0bf528SMauro Carvalho Chehab 389a0bf528SMauro Carvalho Chehab #endif // TDA8083_H 39