[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>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
e476f4e15d
commit
21a7e0596a
@@ -1262,7 +1262,6 @@ static int stk_register_video_device(struct stk_camera *dev)
|
||||
|
||||
dev->vdev = stk_v4l_data;
|
||||
dev->vdev.lock = &dev->lock;
|
||||
dev->vdev.debug = debug;
|
||||
dev->vdev.v4l2_dev = &dev->v4l2_dev;
|
||||
video_set_drvdata(&dev->vdev, dev);
|
||||
err = video_register_device(&dev->vdev, VFL_TYPE_GRABBER, -1);
|
||||
|
Reference in New Issue
Block a user