summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-03-30 00:40:01 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2009-03-30 00:40:01 +0200
commit221b2e5d87ca670a9b764323c59445f1b6e3df27 (patch)
tree403172fe559abb1c7fddb3944ba45632472d15a5 /linux/drivers
parent0811e7462ce5c70637faa77e010016680c1e971a (diff)
downloadmediapointer-dvb-s2-221b2e5d87ca670a9b764323c59445f1b6e3df27.tar.gz
mediapointer-dvb-s2-221b2e5d87ca670a9b764323c59445f1b6e3df27.tar.bz2
v4l2: remove legacy fields in v4l2-i2c-drv.h.
From: Hans Verkuil <hverkuil@xs4all.nl> Priority: normal Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/saa7115.c2
-rw-r--r--linux/drivers/media/video/tuner-core.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/video/saa7115.c b/linux/drivers/media/video/saa7115.c
index f4f624583..a5ae39f35 100644
--- a/linux/drivers/media/video/saa7115.c
+++ b/linux/drivers/media/video/saa7115.c
@@ -1686,7 +1686,9 @@ static struct v4l2_i2c_driver_data v4l2_i2c_data = {
.name = "saa7115",
.probe = saa711x_probe,
.remove = saa711x_remove,
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 22)
.legacy_class = I2C_CLASS_TV_ANALOG | I2C_CLASS_TV_DIGITAL,
+#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26)
.id_table = saa7115_id,
#endif
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c
index ab1eb58ea..6e7ea623b 100644
--- a/linux/drivers/media/video/tuner-core.c
+++ b/linux/drivers/media/video/tuner-core.c
@@ -1044,7 +1044,7 @@ static void tuner_lookup(struct i2c_adapter *adap,
int mode_mask;
if (pos->i2c->adapter != adap ||
- pos->i2c->driver->id != I2C_DRIVERID_TUNER)
+ strcmp(pos->i2c->driver->driver.name, "tuner"))
continue;
mode_mask = pos->mode_mask & ~T_STANDBY;