tua6100.h (1087B)
1/* SPDX-License-Identifier: GPL-2.0-or-later */ 2/* 3 * Driver for Infineon tua6100 PLL. 4 * 5 * (c) 2006 Andrew de Quincey 6 * 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 Metzler 16 * & Marcus Metzler for convergence integrated media GmbH 17 */ 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#else 28static 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_TUA6100 34 35#endif