diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2008-01-29 01:47:25 -0500 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2008-01-29 01:47:25 -0500 |
commit | 7883d9b792eee4d57e9c7e7f7df45ca17c8bfdab (patch) | |
tree | 855ec3c337d542d550216f49242658fc1f35a59d /linux/drivers/media/video/tuner-core.c | |
parent | 5c7b0a4903598f353459c8f2101e7f0023d3e8af (diff) | |
download | mediapointer-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-core.c')
-rw-r--r-- | linux/drivers/media/video/tuner-core.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c index c35528799..9fb321088 100644 --- a/linux/drivers/media/video/tuner-core.c +++ b/linux/drivers/media/video/tuner-core.c @@ -342,18 +342,13 @@ static void tuner_i2c_address_check(struct tuner *t) tuner_warn("output to v4l-dvb-maintainer@linuxtv.org\n"); tuner_warn("Please use subject line: \"obsolete tuner i2c address.\"\n"); tuner_warn("driver: %s, addr: 0x%02x, type: %d (%s)\n", - t->i2c->adapter->name, t->i2c->addr, t->type, - tuners[t->type].name); + t->i2c->adapter->name, t->i2c->addr, t->type, t->i2c->name); tuner_warn("====================== WARNING! ======================\n"); } -static void attach_simple_tuner(struct tuner *t) +static inline void attach_simple_tuner(struct tuner *t) { - struct simple_tuner_config cfg = { - .type = t->type, - .tun = &tuners[t->type] - }; - simple_tuner_attach(&t->fe, t->i2c->adapter, t->i2c->addr, &cfg); + simple_tuner_attach(&t->fe, t->i2c->adapter, t->i2c->addr, t->type); } static void attach_tda829x(struct tuner *t) |