diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2014-12-01 08:10:43 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2014-12-23 07:29:04 -0500 |
commit | 21a7e0596a63abdf12a9591c29359f7f15e18c16 (patch) | |
tree | a66dfa80fd4c25263afdbbe778548af045cb68b8 /drivers/media/usb/stkwebcam | |
parent | e476f4e15d859d1112872667983918bdfa4e663b (diff) |
[media] media: drivers shouldn't touch debug field in video_device
The debug field in struct video_device is for internal use only and
drivers should mix that with their own debug module options.
It is handled by the V4L2 core and users can set it using
/sys/class/video4linux/<devX>/debug.
It has been deprecated for some time now, so it is time to remove it
completely from the drivers.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/usb/stkwebcam')
-rw-r--r-- | drivers/media/usb/stkwebcam/stk-webcam.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/usb/stkwebcam/stk-webcam.c b/drivers/media/usb/stkwebcam/stk-webcam.c index 3588dc38db87..e08fa587332f 100644 --- a/drivers/media/usb/stkwebcam/stk-webcam.c +++ b/drivers/media/usb/stkwebcam/stk-webcam.c | |||
@@ -1262,7 +1262,6 @@ static int stk_register_video_device(struct stk_camera *dev) | |||
1262 | 1262 | ||
1263 | dev->vdev = stk_v4l_data; | 1263 | dev->vdev = stk_v4l_data; |
1264 | dev->vdev.lock = &dev->lock; | 1264 | dev->vdev.lock = &dev->lock; |
1265 | dev->vdev.debug = debug; | ||
1266 | dev->vdev.v4l2_dev = &dev->v4l2_dev; | 1265 | dev->vdev.v4l2_dev = &dev->v4l2_dev; |
1267 | video_set_drvdata(&dev->vdev, dev); | 1266 | video_set_drvdata(&dev->vdev, dev); |
1268 | err = video_register_device(&dev->vdev, VFL_TYPE_GRABBER, -1); | 1267 | err = video_register_device(&dev->vdev, VFL_TYPE_GRABBER, -1); |