diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-14 16:36:54 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-14 16:36:54 +0100 |
commit | c5b41e23cfa080a22b48bdf0e6e2a8028f340a70 (patch) | |
tree | be8ee90451adf9357b95565007290e3992ba8294 /linux/drivers/media/video/bt8xx/bttvp.h | |
parent | 9a4b796fec5b96cb6d0f637fc86983bb376c7628 (diff) | |
download | mediapointer-dvb-s2-c5b41e23cfa080a22b48bdf0e6e2a8028f340a70.tar.gz mediapointer-dvb-s2-c5b41e23cfa080a22b48bdf0e6e2a8028f340a70.tar.bz2 |
bttv: convert to v4l2_device.
From: Hans Verkuil <hverkuil@xs4all.nl>
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/bt8xx/bttvp.h')
-rw-r--r-- | linux/drivers/media/video/bt8xx/bttvp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/drivers/media/video/bt8xx/bttvp.h b/linux/drivers/media/video/bt8xx/bttvp.h index 113f28320..5915c261e 100644 --- a/linux/drivers/media/video/bt8xx/bttvp.h +++ b/linux/drivers/media/video/bt8xx/bttvp.h @@ -460,6 +460,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; |