summaryrefslogtreecommitdiffstats
path: root/drivers/media/IR/imon.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-07-12 22:50:03 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 21:42:53 +0200
commitabf84383ecadc8ada1963f9976e887c6f0b1bad9 (patch)
tree34f369a2f7ee7dc3f42d36f487219fbd0782a265 /drivers/media/IR/imon.c
parentV4L/DVB: gspca - sq930x: Add some comments for sensor mt9v111 (diff)
downloadlinux-abf84383ecadc8ada1963f9976e887c6f0b1bad9.tar.xz
linux-abf84383ecadc8ada1963f9976e887c6f0b1bad9.zip
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/IR/imon.c')
-rw-r--r--drivers/media/IR/imon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/IR/imon.c b/drivers/media/IR/imon.c
index 0195dd5ac078..65c125e44e96 100644
--- a/drivers/media/IR/imon.c
+++ b/drivers/media/IR/imon.c
@@ -407,7 +407,7 @@ static int display_close(struct inode *inode, struct file *file)
struct imon_context *ictx = NULL;
int retval = 0;
- ictx = (struct imon_context *)file->private_data;
+ ictx = file->private_data;
if (!ictx) {
err("%s: no context for device", __func__);
@@ -812,7 +812,7 @@ static ssize_t vfd_write(struct file *file, const char *buf,
const unsigned char vfd_packet6[] = {
0x01, 0x00, 0x00, 0x00, 0x00, 0xFF, 0xFF };
- ictx = (struct imon_context *)file->private_data;
+ ictx = file->private_data;
if (!ictx) {
err("%s: no context for device", __func__);
return -ENODEV;
@@ -896,7 +896,7 @@ static ssize_t lcd_write(struct file *file, const char *buf,
int retval = 0;
struct imon_context *ictx;
- ictx = (struct imon_context *)file->private_data;
+ ictx = file->private_data;
if (!ictx) {
err("%s: no context for device", __func__);
return -ENODEV;