aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/uvc/uvc_v4l2.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-07-12 16:50:03 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 15:42:53 -0400
commitabf84383ecadc8ada1963f9976e887c6f0b1bad9 (patch)
tree34f369a2f7ee7dc3f42d36f487219fbd0782a265 /drivers/media/video/uvc/uvc_v4l2.c
parent1676e4ab55944d483695f51e46b1e629af59706e (diff)
V4L/DVB: drivers/media: Remove unnecessary casts of private_data
Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Jarod Wilson <jarod@redhat.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/uvc/uvc_v4l2.c')
-rw-r--r--drivers/media/video/uvc/uvc_v4l2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/video/uvc/uvc_v4l2.c b/drivers/media/video/uvc/uvc_v4l2.c
index 369ce06be035..86db32697b80 100644
--- a/drivers/media/video/uvc/uvc_v4l2.c
+++ b/drivers/media/video/uvc/uvc_v4l2.c
@@ -516,7 +516,7 @@ static int uvc_v4l2_open(struct file *file)
516 516
517static int uvc_v4l2_release(struct file *file) 517static int uvc_v4l2_release(struct file *file)
518{ 518{
519 struct uvc_fh *handle = (struct uvc_fh *)file->private_data; 519 struct uvc_fh *handle = file->private_data;
520 struct uvc_streaming *stream = handle->stream; 520 struct uvc_streaming *stream = handle->stream;
521 521
522 uvc_trace(UVC_TRACE_CALLS, "uvc_v4l2_release\n"); 522 uvc_trace(UVC_TRACE_CALLS, "uvc_v4l2_release\n");
@@ -547,7 +547,7 @@ static int uvc_v4l2_release(struct file *file)
547static long uvc_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg) 547static long uvc_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg)
548{ 548{
549 struct video_device *vdev = video_devdata(file); 549 struct video_device *vdev = video_devdata(file);
550 struct uvc_fh *handle = (struct uvc_fh *)file->private_data; 550 struct uvc_fh *handle = file->private_data;
551 struct uvc_video_chain *chain = handle->chain; 551 struct uvc_video_chain *chain = handle->chain;
552 struct uvc_streaming *stream = handle->stream; 552 struct uvc_streaming *stream = handle->stream;
553 long ret = 0; 553 long ret = 0;
@@ -1116,7 +1116,7 @@ static const struct vm_operations_struct uvc_vm_ops = {
1116 1116
1117static int uvc_v4l2_mmap(struct file *file, struct vm_area_struct *vma) 1117static int uvc_v4l2_mmap(struct file *file, struct vm_area_struct *vma)
1118{ 1118{
1119 struct uvc_fh *handle = (struct uvc_fh *)file->private_data; 1119 struct uvc_fh *handle = file->private_data;
1120 struct uvc_streaming *stream = handle->stream; 1120 struct uvc_streaming *stream = handle->stream;
1121 struct uvc_video_queue *queue = &stream->queue; 1121 struct uvc_video_queue *queue = &stream->queue;
1122 struct uvc_buffer *uninitialized_var(buffer); 1122 struct uvc_buffer *uninitialized_var(buffer);
@@ -1171,7 +1171,7 @@ done:
1171 1171
1172static unsigned int uvc_v4l2_poll(struct file *file, poll_table *wait) 1172static unsigned int uvc_v4l2_poll(struct file *file, poll_table *wait)
1173{ 1173{
1174 struct uvc_fh *handle = (struct uvc_fh *)file->private_data; 1174 struct uvc_fh *handle = file->private_data;
1175 struct uvc_streaming *stream = handle->stream; 1175 struct uvc_streaming *stream = handle->stream;
1176 1176
1177 uvc_trace(UVC_TRACE_CALLS, "uvc_v4l2_poll\n"); 1177 uvc_trace(UVC_TRACE_CALLS, "uvc_v4l2_poll\n");