[media] gspca: Use video_drvdata(file) instead of file->private_data
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 6 May 2012 12:28:18 +0000 (09:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 14 May 2012 12:26:46 +0000 (09:26 -0300)
commitf4c1605a74c46100d93f465238b9962ac9499e36
treeb93af988889d32566bf105bc6cefb3a6724e500f
parent62bba5dd8181bed282967f1054ed5749b2c499f9
[media] gspca: Use video_drvdata(file) instead of file->private_data

Prepare for control events: free up file->private_data by using
video_drvdata(file) to get to the gspca_dev struct.

[mchehab@redhat.com: fix a compile error: ‘file’ undeclared]
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c