[media] stk1160: fix sparse warning
authorHans Verkuil <hans.verkuil@cisco.com>
Wed, 5 Nov 2014 07:54:09 +0000 (04:54 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 5 Nov 2014 11:08:38 +0000 (09:08 -0200)
stk1160-v4l.c:478:49: warning: incorrect type in argument 3 (different base types)

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/stk1160/stk1160-v4l.c

index 233054311a628028fc8a2533fccf34733086c285..a47629108c1b8b85e9c23110769b8d337928fc72 100644 (file)
@@ -475,7 +475,7 @@ static int vidioc_s_register(struct file *file, void *priv,
        struct stk1160 *dev = video_drvdata(file);
 
        /* Match host */
-       return stk1160_write_reg(dev, reg->reg, cpu_to_le16(reg->val));
+       return stk1160_write_reg(dev, reg->reg, reg->val);
 }
 #endif