From: Hans Verkuil Date: Wed, 5 Nov 2014 07:54:09 +0000 (-0300) Subject: [media] stk1160: fix sparse warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4580278f5d648e9462933ed0910e15cb3549cc09;p=openwrt%2Fstaging%2Fblogic.git [media] stk1160: fix sparse warning stk1160-v4l.c:478:49: warning: incorrect type in argument 3 (different base types) Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/stk1160/stk1160-v4l.c b/drivers/media/usb/stk1160/stk1160-v4l.c index 233054311a62..a47629108c1b 100644 --- a/drivers/media/usb/stk1160/stk1160-v4l.c +++ b/drivers/media/usb/stk1160/stk1160-v4l.c @@ -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