summaryrefslogtreecommitdiff
path: root/drivers/media/tuners/fc0012.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-12-09 06:27:49 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-01-06 15:04:57 +0400
commitad3a758bb30ab7c71b67930ae7dcc794d517dd6b (patch)
tree2fcc121512507f8897ea148932a769b1d2dc7f8a /drivers/media/tuners/fc0012.h
parentbf97b6373bb10bbde7c0b485b8fc829fec5a4bcf (diff)
downloadlinux-ad3a758bb30ab7c71b67930ae7dcc794d517dd6b.tar.xz
[media] fc0012: use struct for driver config
I need even more configuration options and overloading dvb_attach() for all those sounds quite stupid. Due to that switch struct and make room for new options. Signed-off-by: Antti Palosaari <crope@iki.fi> Acked-by: Hans-Frieder Vogt <hfvogt@gmx.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/tuners/fc0012.h')
-rw-r--r--drivers/media/tuners/fc0012.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/drivers/media/tuners/fc0012.h b/drivers/media/tuners/fc0012.h
index 4dbd5efe8845..41946f82d02b 100644
--- a/drivers/media/tuners/fc0012.h
+++ b/drivers/media/tuners/fc0012.h
@@ -24,17 +24,29 @@
#include "dvb_frontend.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) || \
(defined(CONFIG_MEDIA_TUNER_FC0012_MODULE) && defined(MODULE))
extern struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe,
struct i2c_adapter *i2c,
- u8 i2c_address, int dual_master,
- enum fc001x_xtal_freq xtal_freq);
+ const struct fc0012_config *cfg);
#else
static inline struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe,
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__);
return NULL;