18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci Driver for Grundig 29504-491, a Philips TDA8083 based QPSK Frontend 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci Copyright (C) 2001 Convergence Integrated Media GmbH 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci written by Ralph Metzler <ralph@convergence.de> 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci adoption to the new DVB frontend API and diagnostic ioctl's 108c2ecf20Sopenharmony_ci by Holger Waechtler <holger@convergence.de> 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci*/ 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#ifndef TDA8083_H 168c2ecf20Sopenharmony_ci#define TDA8083_H 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#include <linux/dvb/frontend.h> 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_cistruct tda8083_config 218c2ecf20Sopenharmony_ci{ 228c2ecf20Sopenharmony_ci /* the demodulator's i2c address */ 238c2ecf20Sopenharmony_ci u8 demod_address; 248c2ecf20Sopenharmony_ci}; 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci#if IS_REACHABLE(CONFIG_DVB_TDA8083) 278c2ecf20Sopenharmony_ciextern struct dvb_frontend* tda8083_attach(const struct tda8083_config* config, 288c2ecf20Sopenharmony_ci struct i2c_adapter* i2c); 298c2ecf20Sopenharmony_ci#else 308c2ecf20Sopenharmony_cistatic inline struct dvb_frontend* tda8083_attach(const struct tda8083_config* config, 318c2ecf20Sopenharmony_ci struct i2c_adapter* i2c) 328c2ecf20Sopenharmony_ci{ 338c2ecf20Sopenharmony_ci printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 348c2ecf20Sopenharmony_ci return NULL; 358c2ecf20Sopenharmony_ci} 368c2ecf20Sopenharmony_ci#endif // CONFIG_DVB_TDA8083 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci#endif // TDA8083_H 39