diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-03-14 16:36:54 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 17:43:23 +0200 |
commit | 74fc7bd9cec0ccdbea23659208492ec7ffc58297 (patch) | |
tree | cd16dbc46ec3771da456d71e2d0f27519ca9ae79 /drivers/media/video/bt8xx/bttvp.h | |
parent | V4L/DVB (11045): v4l2: call v4l2_device_disconnect in USB drivers. (diff) | |
download | linux-74fc7bd9cec0ccdbea23659208492ec7ffc58297.tar.xz linux-74fc7bd9cec0ccdbea23659208492ec7ffc58297.zip |
V4L/DVB (11046): bttv: convert to v4l2_device.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/bt8xx/bttvp.h')
-rw-r--r-- | drivers/media/video/bt8xx/bttvp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/video/bt8xx/bttvp.h b/drivers/media/video/bt8xx/bttvp.h index 2c0a2cc61d03..5755b407c0a2 100644 --- a/drivers/media/video/bt8xx/bttvp.h +++ b/drivers/media/video/bt8xx/bttvp.h @@ -458,6 +458,11 @@ struct bttv { __s32 crop_start; }; +static inline struct bttv *to_bttv(struct v4l2_device *v4l2_dev) +{ + return container_of(v4l2_dev, struct bttv, c.v4l2_dev); +} + /* our devices */ #define BTTV_MAX 32 extern unsigned int bttv_num; |