summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/tuner-simple.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-01-29 01:47:25 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2008-01-29 01:47:25 -0500
commit7883d9b792eee4d57e9c7e7f7df45ca17c8bfdab (patch)
tree855ec3c337d542d550216f49242658fc1f35a59d /linux/drivers/media/video/tuner-simple.c
parent5c7b0a4903598f353459c8f2101e7f0023d3e8af (diff)
downloadmediapointer-dvb-s2-7883d9b792eee4d57e9c7e7f7df45ca17c8bfdab.tar.gz
mediapointer-dvb-s2-7883d9b792eee4d57e9c7e7f7df45ca17c8bfdab.tar.bz2
tuner: remove dependency of tuner-core on tuner-types
From: Michael Krufky <mkrufky@linuxtv.org> This patch fully removes the dependency of tuner-core on tuner-types. There is no longer any need to pass struct tunertype in attach-time config structure - instead pass the tuner type ID. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/video/tuner-simple.c')
-rw-r--r--linux/drivers/media/video/tuner-simple.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/linux/drivers/media/video/tuner-simple.c b/linux/drivers/media/video/tuner-simple.c
index cd3a3bae9..c23407067 100644
--- a/linux/drivers/media/video/tuner-simple.c
+++ b/linux/drivers/media/video/tuner-simple.c
@@ -719,7 +719,7 @@ static struct dvb_tuner_ops simple_tuner_ops = {
struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe,
struct i2c_adapter *i2c_adap,
u8 i2c_addr,
- struct simple_tuner_config *cfg)
+ unsigned int type)
{
struct tuner_simple_priv *priv = NULL;
@@ -736,15 +736,15 @@ struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe,
priv->i2c_props.addr = i2c_addr;
priv->i2c_props.adap = i2c_adap;
- priv->type = cfg->type;
- priv->tun = cfg->tun;
+ priv->type = type;
+ priv->tun = &tuners[type];
memcpy(&fe->ops.tuner_ops, &simple_tuner_ops,
sizeof(struct dvb_tuner_ops));
- tuner_info("type set to %d (%s)\n", cfg->type, cfg->tun->name);
+ tuner_info("type set to %d (%s)\n", priv->type, priv->tun->name);
- strlcpy(fe->ops.tuner_ops.info.name, cfg->tun->name,
+ strlcpy(fe->ops.tuner_ops.info.name, priv->tun->name,
sizeof(fe->ops.tuner_ops.info.name));
return fe;