Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost
[cris-mirror.git] / drivers / media / dvb-frontends / tua6100.h
bloba342bd9c7fbf2daa3b72b9fe53a3be3bd97a86ef
1 /*
2 * Driver for Infineon tua6100 PLL.
4 * (c) 2006 Andrew de Quincey
6 * Based on code found in budget-av.c, which has the following:
7 * Compiled from various sources by Michael Hunold <michael@mihu.de>
9 * CI interface support (c) 2004 Olivier Gournet <ogournet@anevia.com> &
10 * Andrew de Quincey <adq_dvb@lidskialf.net>
12 * Copyright (C) 2002 Ralph Metzler <rjkm@metzlerbros.de>
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.
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.
27 #ifndef __DVB_TUA6100_H__
28 #define __DVB_TUA6100_H__
30 #include <linux/i2c.h>
31 #include <media/dvb_frontend.h>
33 #if IS_REACHABLE(CONFIG_DVB_TUA6100)
34 extern struct dvb_frontend *tua6100_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c);
35 #else
36 static inline struct dvb_frontend* tua6100_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c)
38 printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
39 return NULL;
41 #endif // CONFIG_DVB_TUA6100
43 #endif