2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 20:53:53 +08:00

V4L/DVB (7970): mix trivial endianness annotations

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
Al Viro 2008-05-21 00:32:51 -03:00 committed by Mauro Carvalho Chehab
parent fa9c13a383
commit a954b6681d
2 changed files with 5 additions and 5 deletions

View File

@ -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));

View File

@ -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;