diff options
author | Joe Perches <joe@perches.com> | 2010-07-12 16:50:03 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-08-02 15:42:53 -0400 |
commit | abf84383ecadc8ada1963f9976e887c6f0b1bad9 (patch) | |
tree | 34f369a2f7ee7dc3f42d36f487219fbd0782a265 /drivers/media/common | |
parent | 1676e4ab55944d483695f51e46b1e629af59706e (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/common')
-rw-r--r-- | drivers/media/common/saa7146_vbi.c | 4 | ||||
-rw-r--r-- | drivers/media/common/saa7146_video.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/media/common/saa7146_vbi.c b/drivers/media/common/saa7146_vbi.c index 74e2b56ecb5b..8224c301d050 100644 --- a/drivers/media/common/saa7146_vbi.c +++ b/drivers/media/common/saa7146_vbi.c | |||
@@ -375,7 +375,7 @@ static void vbi_init(struct saa7146_dev *dev, struct saa7146_vv *vv) | |||
375 | 375 | ||
376 | static int vbi_open(struct saa7146_dev *dev, struct file *file) | 376 | static int vbi_open(struct saa7146_dev *dev, struct file *file) |
377 | { | 377 | { |
378 | struct saa7146_fh *fh = (struct saa7146_fh *)file->private_data; | 378 | struct saa7146_fh *fh = file->private_data; |
379 | 379 | ||
380 | u32 arbtr_ctrl = saa7146_read(dev, PCI_BT_V1); | 380 | u32 arbtr_ctrl = saa7146_read(dev, PCI_BT_V1); |
381 | int ret = 0; | 381 | int ret = 0; |
@@ -437,7 +437,7 @@ static int vbi_open(struct saa7146_dev *dev, struct file *file) | |||
437 | 437 | ||
438 | static void vbi_close(struct saa7146_dev *dev, struct file *file) | 438 | static void vbi_close(struct saa7146_dev *dev, struct file *file) |
439 | { | 439 | { |
440 | struct saa7146_fh *fh = (struct saa7146_fh *)file->private_data; | 440 | struct saa7146_fh *fh = file->private_data; |
441 | struct saa7146_vv *vv = dev->vv_data; | 441 | struct saa7146_vv *vv = dev->vv_data; |
442 | DEB_VBI(("dev:%p, fh:%p\n",dev,fh)); | 442 | DEB_VBI(("dev:%p, fh:%p\n",dev,fh)); |
443 | 443 | ||
diff --git a/drivers/media/common/saa7146_video.c b/drivers/media/common/saa7146_video.c index b8b2c551a1e2..a212a91a30f0 100644 --- a/drivers/media/common/saa7146_video.c +++ b/drivers/media/common/saa7146_video.c | |||
@@ -1370,7 +1370,7 @@ static void video_init(struct saa7146_dev *dev, struct saa7146_vv *vv) | |||
1370 | 1370 | ||
1371 | static int video_open(struct saa7146_dev *dev, struct file *file) | 1371 | static int video_open(struct saa7146_dev *dev, struct file *file) |
1372 | { | 1372 | { |
1373 | struct saa7146_fh *fh = (struct saa7146_fh *)file->private_data; | 1373 | struct saa7146_fh *fh = file->private_data; |
1374 | struct saa7146_format *sfmt; | 1374 | struct saa7146_format *sfmt; |
1375 | 1375 | ||
1376 | fh->video_fmt.width = 384; | 1376 | fh->video_fmt.width = 384; |
@@ -1394,7 +1394,7 @@ static int video_open(struct saa7146_dev *dev, struct file *file) | |||
1394 | 1394 | ||
1395 | static void video_close(struct saa7146_dev *dev, struct file *file) | 1395 | static void video_close(struct saa7146_dev *dev, struct file *file) |
1396 | { | 1396 | { |
1397 | struct saa7146_fh *fh = (struct saa7146_fh *)file->private_data; | 1397 | struct saa7146_fh *fh = file->private_data; |
1398 | struct saa7146_vv *vv = dev->vv_data; | 1398 | struct saa7146_vv *vv = dev->vv_data; |
1399 | struct videobuf_queue *q = &fh->video_q; | 1399 | struct videobuf_queue *q = &fh->video_q; |
1400 | int err; | 1400 | int err; |