|
@@ -24,17 +24,29 @@
|
|
#include "dvb_frontend.h"
|
|
#include "dvb_frontend.h"
|
|
#include "fc001x-common.h"
|
|
#include "fc001x-common.h"
|
|
|
|
|
|
|
|
+struct fc0012_config {
|
|
|
|
+ /*
|
|
|
|
+ * I2C address
|
|
|
|
+ */
|
|
|
|
+ u8 i2c_address;
|
|
|
|
+
|
|
|
|
+ /*
|
|
|
|
+ * clock
|
|
|
|
+ */
|
|
|
|
+ enum fc001x_xtal_freq xtal_freq;
|
|
|
|
+
|
|
|
|
+ int dual_master;
|
|
|
|
+};
|
|
|
|
+
|
|
#if defined(CONFIG_MEDIA_TUNER_FC0012) || \
|
|
#if defined(CONFIG_MEDIA_TUNER_FC0012) || \
|
|
(defined(CONFIG_MEDIA_TUNER_FC0012_MODULE) && defined(MODULE))
|
|
(defined(CONFIG_MEDIA_TUNER_FC0012_MODULE) && defined(MODULE))
|
|
extern struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe,
|
|
extern struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe,
|
|
struct i2c_adapter *i2c,
|
|
struct i2c_adapter *i2c,
|
|
- u8 i2c_address, int dual_master,
|
|
|
|
- enum fc001x_xtal_freq xtal_freq);
|
|
|
|
|
|
+ const struct fc0012_config *cfg);
|
|
#else
|
|
#else
|
|
static inline struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe,
|
|
static inline struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe,
|
|
struct i2c_adapter *i2c,
|
|
struct i2c_adapter *i2c,
|
|
- u8 i2c_address, int dual_master,
|
|
|
|
- enum fc001x_xtal_freq xtal_freq)
|
|
|
|
|
|
+ const struct fc0012_config *cfg)
|
|
{
|
|
{
|
|
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
|
|
printk(KERN_WARNING "%s: driver disabled by Kconfig\n", __func__);
|
|
return NULL;
|
|
return NULL;
|