summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/dvb-pll.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2007-02-28 18:26:16 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-02-28 18:26:16 -0200
commit0991b38929edc3f7202157c6a1e04682ad9694cc (patch)
tree3176f3d96c1a7909ca2a867fe67e3a89027fef5d /linux/drivers/media/dvb/frontends/dvb-pll.h
parentd444e8da71bac607984628cfa49b0f89c02a2db9 (diff)
parent0e856055f505320ad16b590b1b9b1ca5341064ab (diff)
downloadmediapointer-dvb-s2-0991b38929edc3f7202157c6a1e04682ad9694cc.tar.gz
mediapointer-dvb-s2-0991b38929edc3f7202157c6a1e04682ad9694cc.tar.bz2
merge: http://linuxtv.org/hg/~tap/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@infradead.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/dvb-pll.h')
-rw-r--r--linux/drivers/media/dvb/frontends/dvb-pll.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/frontends/dvb-pll.h b/linux/drivers/media/dvb/frontends/dvb-pll.h
index 681186a5e..bb79a7815 100644
--- a/linux/drivers/media/dvb/frontends/dvb-pll.h
+++ b/linux/drivers/media/dvb/frontends/dvb-pll.h
@@ -13,6 +13,7 @@ struct dvb_pll_desc {
u32 min;
u32 max;
void (*setbw)(u8 *buf, u32 freq, int bandwidth);
+ u8 *initdata;
int count;
struct {
u32 limit;
@@ -59,9 +60,20 @@ extern int dvb_pll_configure(struct dvb_pll_desc *desc, u8 *buf,
* @param desc dvb_pll_desc to use.
* @return Frontend pointer on success, NULL on failure
*/
+#if defined(CONFIG_DVB_PLL) || (defined(CONFIG_DVB_PLL_MODULE) && defined(MODULE))
extern struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
int pll_addr,
struct i2c_adapter *i2c,
struct dvb_pll_desc *desc);
+#else
+static inline struct dvb_frontend *dvb_pll_attach(struct dvb_frontend *fe,
+ int pll_addr,
+ struct i2c_adapter *i2c,
+ struct dvb_pll_desc *desc)
+{
+ printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __FUNCTION__);
+ return NULL;
+}
+#endif
#endif