aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/tuners/fc0012.c
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2012-12-08 21:27:49 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-01-06 06:04:57 -0500
commitad3a758bb30ab7c71b67930ae7dcc794d517dd6b (patch)
tree2fcc121512507f8897ea148932a769b1d2dc7f8a /drivers/media/tuners/fc0012.c
parentbf97b6373bb10bbde7c0b485b8fc829fec5a4bcf (diff)
[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.c')
-rw-r--r--drivers/media/tuners/fc0012.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/media/tuners/fc0012.c b/drivers/media/tuners/fc0012.c
index 308135abd54c..5ede0c049bc0 100644
--- a/drivers/media/tuners/fc0012.c
+++ b/drivers/media/tuners/fc0012.c
@@ -436,8 +436,7 @@ static const struct dvb_tuner_ops fc0012_tuner_ops = {
436}; 436};
437 437
438struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe, 438struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe,
439 struct i2c_adapter *i2c, u8 i2c_address, int dual_master, 439 struct i2c_adapter *i2c, const struct fc0012_config *cfg)
440 enum fc001x_xtal_freq xtal_freq)
441{ 440{
442 struct fc0012_priv *priv = NULL; 441 struct fc0012_priv *priv = NULL;
443 442
@@ -446,9 +445,9 @@ struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe,
446 return NULL; 445 return NULL;
447 446
448 priv->i2c = i2c; 447 priv->i2c = i2c;
449 priv->dual_master = dual_master; 448 priv->dual_master = cfg->dual_master;
450 priv->addr = i2c_address; 449 priv->addr = cfg->i2c_address;
451 priv->xtal_freq = xtal_freq; 450 priv->xtal_freq = cfg->xtal_freq;
452 451
453 info("Fitipower FC0012 successfully attached."); 452 info("Fitipower FC0012 successfully attached.");
454 453