summaryrefslogtreecommitdiff
path: root/drivers/media/test-drivers/vim2m.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/test-drivers/vim2m.c')
-rw-r--r--drivers/media/test-drivers/vim2m.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/test-drivers/vim2m.c b/drivers/media/test-drivers/vim2m.c
index 1d1a9e768505..55d885be5bcc 100644
--- a/drivers/media/test-drivers/vim2m.c
+++ b/drivers/media/test-drivers/vim2m.c
@@ -236,7 +236,7 @@ struct vim2m_ctx {
static inline struct vim2m_ctx *file2ctx(struct file *file)
{
- return container_of(file->private_data, struct vim2m_ctx, fh);
+ return container_of(file_to_v4l2_fh(file), struct vim2m_ctx, fh);
}
static struct vim2m_q_data *get_q_data(struct vim2m_ctx *ctx,