aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/au0828/au0828-i2c.c
diff options
context:
space:
mode:
authorDevin Heitmueller <dheitmueller@linuxtv.org>2009-03-11 02:01:04 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:43:27 -0400
commitb14667f32ad0f85f986847ef65f9f3d12a44b71a (patch)
treebb5e0a2867f9d16e37d2a27f9a5d3b7efe122f5f /drivers/media/video/au0828/au0828-i2c.c
parent2eaf396020555973cad7aa5b517c2418eccbca50 (diff)
V4L/DVB (11080): au0828: Convert to use v4l2_device/subdev framework
Convert over to using the new subdev framework for the au0828 bridge. This includes using the new i2c probing mechanism. Signed-off-by: Devin Heitmueller <dheitmueller@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/au0828/au0828-i2c.c')
-rw-r--r--drivers/media/video/au0828/au0828-i2c.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/video/au0828/au0828-i2c.c b/drivers/media/video/au0828/au0828-i2c.c
index d57a38f5c738..e841ba5a6424 100644
--- a/drivers/media/video/au0828/au0828-i2c.c
+++ b/drivers/media/video/au0828/au0828-i2c.c
@@ -345,7 +345,6 @@ static struct i2c_adapter au0828_i2c_adap_template = {
345 .owner = THIS_MODULE, 345 .owner = THIS_MODULE,
346 .id = I2C_HW_B_AU0828, 346 .id = I2C_HW_B_AU0828,
347 .algo = &au0828_i2c_algo_template, 347 .algo = &au0828_i2c_algo_template,
348 .class = I2C_CLASS_TV_ANALOG,
349 .client_register = attach_inform, 348 .client_register = attach_inform,
350 .client_unregister = detach_inform, 349 .client_unregister = detach_inform,
351}; 350};
@@ -392,9 +391,9 @@ int au0828_i2c_register(struct au0828_dev *dev)
392 strlcpy(dev->i2c_adap.name, DRIVER_NAME, 391 strlcpy(dev->i2c_adap.name, DRIVER_NAME,
393 sizeof(dev->i2c_adap.name)); 392 sizeof(dev->i2c_adap.name));
394 393
395 dev->i2c_algo.data = dev; 394 dev->i2c_adap.algo = &dev->i2c_algo;
396 dev->i2c_adap.algo_data = dev; 395 dev->i2c_adap.algo_data = dev;
397 i2c_set_adapdata(&dev->i2c_adap, dev); 396 i2c_set_adapdata(&dev->i2c_adap, &dev->v4l2_dev);
398 i2c_add_adapter(&dev->i2c_adap); 397 i2c_add_adapter(&dev->i2c_adap);
399 398
400 dev->i2c_client.adapter = &dev->i2c_adap; 399 dev->i2c_client.adapter = &dev->i2c_adap;