diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-12-09 11:52:51 -0500 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2007-12-09 11:52:51 -0500 |
commit | 446475ffbe175d4c8c7cd071681b0c2ea1385650 (patch) | |
tree | fae69ecdc13afb23943f618d7e937c02b2163abb /linux/drivers/media/video/tuner-core.c | |
parent | 1eb95e84c755878770c7a55f8fc226dd63170813 (diff) | |
download | mediapointer-dvb-s2-446475ffbe175d4c8c7cd071681b0c2ea1385650.tar.gz mediapointer-dvb-s2-446475ffbe175d4c8c7cd071681b0c2ea1385650.tar.bz2 |
tuner: add struct analog_demod_info to struct analog_tuner_ops
From: Michael Krufky <mkrufky@linuxtv.org>
Store the analog demodulator name in fe.ops.analog_demod_ops.info.name
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 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c index 0d2648e27..3cbf47a7a 100644 --- a/linux/drivers/media/video/tuner-core.c +++ b/linux/drivers/media/video/tuner-core.c @@ -439,6 +439,9 @@ static void set_type(struct i2c_client *c, unsigned int type, t->fe.ops.analog_demod_ops = &tuner_core_ops; t->fe.analog_demod_priv = t; + } else { + strlcpy(t->i2c->name, ops->info.name, + sizeof(t->i2c->name)); } tuner_dbg("type set to %s\n", t->i2c->name); |