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/pci | |
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/pci')
-rw-r--r-- | drivers/media/pci/bt8xx/bttv-driver.c | 1 | ||||
-rw-r--r-- | drivers/media/pci/cx88/cx88-blackbird.c | 3 |
2 files changed, 0 insertions, 4 deletions
diff --git a/drivers/media/pci/bt8xx/bttv-driver.c b/drivers/media/pci/bt8xx/bttv-driver.c index 665e46dafe68..6eed8f75c13c 100644 --- a/drivers/media/pci/bt8xx/bttv-driver.c +++ b/drivers/media/pci/bt8xx/bttv-driver.c | |||
@@ -3884,7 +3884,6 @@ static struct video_device *vdev_init(struct bttv *btv, | |||
3884 | *vfd = *template; | 3884 | *vfd = *template; |
3885 | vfd->v4l2_dev = &btv->c.v4l2_dev; | 3885 | vfd->v4l2_dev = &btv->c.v4l2_dev; |
3886 | vfd->release = video_device_release; | 3886 | vfd->release = video_device_release; |
3887 | vfd->debug = bttv_debug; | ||
3888 | video_set_drvdata(vfd, btv); | 3887 | video_set_drvdata(vfd, btv); |
3889 | snprintf(vfd->name, sizeof(vfd->name), "BT%d%s %s (%s)", | 3888 | snprintf(vfd->name, sizeof(vfd->name), "BT%d%s %s (%s)", |
3890 | btv->id, (btv->id==848 && btv->revision==0x12) ? "A" : "", | 3889 | btv->id, (btv->id==848 && btv->revision==0x12) ? "A" : "", |
diff --git a/drivers/media/pci/cx88/cx88-blackbird.c b/drivers/media/pci/cx88/cx88-blackbird.c index d3c79d964f2c..b6be46e94289 100644 --- a/drivers/media/pci/cx88/cx88-blackbird.c +++ b/drivers/media/pci/cx88/cx88-blackbird.c | |||
@@ -1234,6 +1234,3 @@ static void __exit blackbird_fini(void) | |||
1234 | 1234 | ||
1235 | module_init(blackbird_init); | 1235 | module_init(blackbird_init); |
1236 | module_exit(blackbird_fini); | 1236 | module_exit(blackbird_fini); |
1237 | |||
1238 | module_param_named(video_debug,cx8802_mpeg_template.debug, int, 0644); | ||
1239 | MODULE_PARM_DESC(debug,"enable debug messages [video]"); | ||