39 lines · c
1/* SPDX-License-Identifier: GPL-2.0-or-later */2/*3 Driver for Grundig 29504-491, a Philips TDA8083 based QPSK Frontend4 5 Copyright (C) 2001 Convergence Integrated Media GmbH6 7 written by Ralph Metzler <ralph@convergence.de>8 9 adoption to the new DVB frontend API and diagnostic ioctl's10 by Holger Waechtler <holger@convergence.de>11 12 13*/14 15#ifndef TDA8083_H16#define TDA8083_H17 18#include <linux/dvb/frontend.h>19 20struct tda8083_config21{22 /* the demodulator's i2c address */23 u8 demod_address;24};25 26#if IS_REACHABLE(CONFIG_DVB_TDA8083)27extern struct dvb_frontend *tda8083_attach(const struct tda8083_config *config,28 struct i2c_adapter *i2c);29#else30static 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_TDA808337 38#endif // TDA8083_H39