diff options
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 { | |||
458 | __s32 crop_start; | 458 | __s32 crop_start; |
459 | }; | 459 | }; |
460 | 460 | ||
461 | static inline struct bttv *to_bttv(struct v4l2_device *v4l2_dev) | ||
462 | { | ||
463 | return container_of(v4l2_dev, struct bttv, c.v4l2_dev); | ||
464 | } | ||
465 | |||
461 | /* our devices */ | 466 | /* our devices */ |
462 | #define BTTV_MAX 32 | 467 | #define BTTV_MAX 32 |
463 | extern unsigned int bttv_num; | 468 | extern unsigned int bttv_num; |