Commit a954b668 authored by Al Viro's avatar Al Viro Committed by Mauro Carvalho Chehab

V4L/DVB (7970): mix trivial endianness annotations

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent fa9c13a3
......@@ -1166,13 +1166,13 @@ static int vidioc_g_register(struct file *file, void *priv,
reg->val = ret;
} else {
u64 val = 0;
__le64 val = 0;
ret = em28xx_read_reg_req_len(dev, USB_REQ_GET_STATUS,
reg->reg, (char *)&val, 2);
if (ret < 0)
return ret;
reg->val = cpu_to_le64((__u64)val);
reg->val = le64_to_cpu(val);
}
return 0;
......@@ -1183,9 +1183,9 @@ static int vidioc_s_register(struct file *file, void *priv,
{
struct em28xx_fh *fh = priv;
struct em28xx *dev = fh->dev;
u64 buf;
__le64 buf;
buf = le64_to_cpu((__u64)reg->val);
buf = cpu_to_le64(reg->val);
return em28xx_write_regs(dev, reg->reg, (char *)&buf,
em28xx_reg_len(reg->reg));
......
......@@ -210,7 +210,7 @@ static int qcm_stv_setb(struct usb_device *dev, u16 reg, u8 val)
return ret;
}
static int qcm_stv_setw(struct usb_device *dev, u16 reg, u16 val)
static int qcm_stv_setw(struct usb_device *dev, u16 reg, __le16 val)
{
int ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment