18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Driver for Infineon tua6100 PLL. 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * (c) 2006 Andrew de Quincey 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * Based on code found in budget-av.c, which has the following: 88c2ecf20Sopenharmony_ci * Compiled from various sources by Michael Hunold <michael@mihu.de> 98c2ecf20Sopenharmony_ci * 108c2ecf20Sopenharmony_ci * CI interface support (c) 2004 Olivier Gournet <ogournet@anevia.com> & 118c2ecf20Sopenharmony_ci * Andrew de Quincey <adq_dvb@lidskialf.net> 128c2ecf20Sopenharmony_ci * 138c2ecf20Sopenharmony_ci * Copyright (C) 2002 Ralph Metzler <rjkm@metzlerbros.de> 148c2ecf20Sopenharmony_ci * 158c2ecf20Sopenharmony_ci * Copyright (C) 1999-2002 Ralph Metzler 168c2ecf20Sopenharmony_ci * & Marcus Metzler for convergence integrated media GmbH 178c2ecf20Sopenharmony_ci */ 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ci#ifndef __DVB_TUA6100_H__ 208c2ecf20Sopenharmony_ci#define __DVB_TUA6100_H__ 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci#include <linux/i2c.h> 238c2ecf20Sopenharmony_ci#include <media/dvb_frontend.h> 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci#if IS_REACHABLE(CONFIG_DVB_TUA6100) 268c2ecf20Sopenharmony_ciextern struct dvb_frontend *tua6100_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c); 278c2ecf20Sopenharmony_ci#else 288c2ecf20Sopenharmony_cistatic inline struct dvb_frontend* tua6100_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c) 298c2ecf20Sopenharmony_ci{ 308c2ecf20Sopenharmony_ci printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); 318c2ecf20Sopenharmony_ci return NULL; 328c2ecf20Sopenharmony_ci} 338c2ecf20Sopenharmony_ci#endif // CONFIG_DVB_TUA6100 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci#endif 36