Mauro Carvalho Chehab | b95b0c9 | 2017-11-29 12:39:19 -0500 | [diff] [blame] | 1 | /* |
Andrew de Quincey | 00be2e7 | 2006-09-05 17:53:06 -0300 | [diff] [blame] | 2 | * Driver for Infineon tua6100 PLL. |
| 3 | * |
| 4 | * (c) 2006 Andrew de Quincey |
| 5 | * |
| 6 | * Based on code found in budget-av.c, which has the following: |
| 7 | * Compiled from various sources by Michael Hunold <michael@mihu.de> |
| 8 | * |
| 9 | * CI interface support (c) 2004 Olivier Gournet <ogournet@anevia.com> & |
| 10 | * Andrew de Quincey <adq_dvb@lidskialf.net> |
| 11 | * |
| 12 | * Copyright (C) 2002 Ralph Metzler <rjkm@metzlerbros.de> |
| 13 | * |
| 14 | * Copyright (C) 1999-2002 Ralph Metzler |
| 15 | * & Marcus Metzler for convergence integrated media GmbH |
| 16 | * This program is free software; you can redistribute it and/or modify |
| 17 | * it under the terms of the GNU General Public License as published by |
| 18 | * the Free Software Foundation; either version 2 of the License, or |
| 19 | * (at your option) any later version. |
| 20 | * |
| 21 | * This program is distributed in the hope that it will be useful, |
| 22 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 23 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 24 | * GNU General Public License for more details. |
Andrew de Quincey | 00be2e7 | 2006-09-05 17:53:06 -0300 | [diff] [blame] | 25 | */ |
| 26 | |
| 27 | #ifndef __DVB_TUA6100_H__ |
| 28 | #define __DVB_TUA6100_H__ |
| 29 | |
| 30 | #include <linux/i2c.h> |
Mauro Carvalho Chehab | fada193 | 2017-12-28 13:03:51 -0500 | [diff] [blame] | 31 | #include <media/dvb_frontend.h> |
Andrew de Quincey | 00be2e7 | 2006-09-05 17:53:06 -0300 | [diff] [blame] | 32 | |
Arnd Bergmann | 9b17452 | 2015-02-18 14:12:42 -0300 | [diff] [blame] | 33 | #if IS_REACHABLE(CONFIG_DVB_TUA6100) |
Andrew de Quincey | 00be2e7 | 2006-09-05 17:53:06 -0300 | [diff] [blame] | 34 | extern struct dvb_frontend *tua6100_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c); |
Andrew de Quincey | 92cd24f | 2006-09-07 00:31:55 -0300 | [diff] [blame] | 35 | #else |
| 36 | static inline struct dvb_frontend* tua6100_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c) |
| 37 | { |
Harvey Harrison | 271ddbf | 2008-04-08 23:20:00 -0300 | [diff] [blame] | 38 | printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__); |
Andrew de Quincey | 92cd24f | 2006-09-07 00:31:55 -0300 | [diff] [blame] | 39 | return NULL; |
| 40 | } |
| 41 | #endif // CONFIG_DVB_TUA6100 |
Andrew de Quincey | 00be2e7 | 2006-09-05 17:53:06 -0300 | [diff] [blame] | 42 | |
| 43 | #endif |