36 lines · c
1/* SPDX-License-Identifier: GPL-2.0-or-later */2/*3 * Driver for Infineon tua6100 PLL.4 *5 * (c) 2006 Andrew de Quincey6 *7 * Based on code found in budget-av.c, which has the following:8 * Compiled from various sources by Michael Hunold <michael@mihu.de>9 *10 * CI interface support (c) 2004 Olivier Gournet <ogournet@anevia.com> &11 * Andrew de Quincey <adq_dvb@lidskialf.net>12 *13 * Copyright (C) 2002 Ralph Metzler <rjkm@metzlerbros.de>14 *15 * Copyright (C) 1999-2002 Ralph Metzler16 * & Marcus Metzler for convergence integrated media GmbH17 */18 19#ifndef __DVB_TUA6100_H__20#define __DVB_TUA6100_H__21 22#include <linux/i2c.h>23#include <media/dvb_frontend.h>24 25#if IS_REACHABLE(CONFIG_DVB_TUA6100)26extern struct dvb_frontend *tua6100_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c);27#else28static inline struct dvb_frontend* tua6100_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c)29{30 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);31 return NULL;32}33#endif // CONFIG_DVB_TUA610034 35#endif36