summaryrefslogtreecommitdiff
path: root/drivers/media/pci/bt8xx/bttvp.h
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2015-03-09 13:34:02 -0300
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-04-08 06:45:12 -0300
commit23fb4c5ea11814f48249ea3ab9f3ddb4dff77be1 (patch)
tree55638fb2c12dde6e4822f5ca0daebd51c81ad912 /drivers/media/pci/bt8xx/bttvp.h
parent34080bc25fa04e07691e853cd516c431b67be5f4 (diff)
downloadlwn-23fb4c5ea11814f48249ea3ab9f3ddb4dff77be1.tar.gz
lwn-23fb4c5ea11814f48249ea3ab9f3ddb4dff77be1.zip
[media] bttv: embed video_device
Embed the video_device struct to simplify the error handling and in order to (eventually) get rid of video_device_alloc/release. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci/bt8xx/bttvp.h')
-rw-r--r--drivers/media/pci/bt8xx/bttvp.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/pci/bt8xx/bttvp.h b/drivers/media/pci/bt8xx/bttvp.h
index bc048c586b1f..a444cfb35c0b 100644
--- a/drivers/media/pci/bt8xx/bttvp.h
+++ b/drivers/media/pci/bt8xx/bttvp.h
@@ -404,9 +404,9 @@ struct bttv {
struct v4l2_subdev *sd_tda7432;
/* video4linux (1) */
- struct video_device *video_dev;
- struct video_device *radio_dev;
- struct video_device *vbi_dev;
+ struct video_device video_dev;
+ struct video_device radio_dev;
+ struct video_device vbi_dev;
/* controls */
struct v4l2_ctrl_handler ctrl_handler;