diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-08-10 01:49:08 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-18 23:19:24 -0400 |
commit | 53dacb15705901e14b03dcba27e40364fedd9d09 (patch) | |
tree | ca3b4111465aca9d58024ace0f0072ee7952c11e /drivers/media/video/w9968cf.c | |
parent | 0da2808ca27ab7f65346d4d191569c669db8f628 (diff) |
V4L/DVB (12540): v4l: simplify v4l2_i2c_new_subdev and friends
Rewrite v4l2_i2c_new_subdev as a simplified version of v4l2_i2c_new_subdev_cfg
and remove v4l2_i2c_new_probed_subdev and v4l2_i2c_new_probed_subdev_addr.
This simplifies this API substantially.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/w9968cf.c')
-rw-r--r-- | drivers/media/video/w9968cf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/w9968cf.c b/drivers/media/video/w9968cf.c index 602484dd3da9..37fcdc447db5 100644 --- a/drivers/media/video/w9968cf.c +++ b/drivers/media/video/w9968cf.c | |||
@@ -3515,9 +3515,9 @@ w9968cf_usb_probe(struct usb_interface* intf, const struct usb_device_id* id) | |||
3515 | w9968cf_turn_on_led(cam); | 3515 | w9968cf_turn_on_led(cam); |
3516 | 3516 | ||
3517 | w9968cf_i2c_init(cam); | 3517 | w9968cf_i2c_init(cam); |
3518 | cam->sensor_sd = v4l2_i2c_new_probed_subdev(&cam->v4l2_dev, | 3518 | cam->sensor_sd = v4l2_i2c_new_subdev(&cam->v4l2_dev, |
3519 | &cam->i2c_adapter, | 3519 | &cam->i2c_adapter, |
3520 | "ovcamchip", "ovcamchip", addrs); | 3520 | "ovcamchip", "ovcamchip", 0, addrs); |
3521 | 3521 | ||
3522 | usb_set_intfdata(intf, cam); | 3522 | usb_set_intfdata(intf, cam); |
3523 | mutex_unlock(&cam->dev_mutex); | 3523 | mutex_unlock(&cam->dev_mutex); |