]> err.no Git - linux-2.6/blobdiff - drivers/media/dvb/frontends/ves1820.h
V4L/DVB (7920): s5h1409.c shouldn't #include "dvb-pll.h"
[linux-2.6] / drivers / media / dvb / frontends / ves1820.h
index 355f130b1be8e13f35454c81c7c7ad459253b998..e902ed634ec301ea3ffe59fc3a5e0400a438cd4f 100644 (file)
@@ -39,13 +39,18 @@ struct ves1820_config
 
        /* SELAGC control */
        u8 selagc:1;
-
-       /* PLL maintenance */
-       int (*pll_init)(struct dvb_frontend* fe);
-       int (*pll_set)(struct dvb_frontend* fe, struct dvb_frontend_parameters* params);
 };
 
+#if defined(CONFIG_DVB_VES1820) || (defined(CONFIG_DVB_VES1820_MODULE) && defined(MODULE))
 extern struct dvb_frontend* ves1820_attach(const struct ves1820_config* config,
                                           struct i2c_adapter* i2c, u8 pwm);
+#else
+static inline struct dvb_frontend* ves1820_attach(const struct ves1820_config* config,
+                                          struct i2c_adapter* i2c, u8 pwm)
+{
+       printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
+       return NULL;
+}
+#endif // CONFIG_DVB_VES1820
 
 #endif // VES1820_H