提交 616e3506 编写于 作者: H Hans Verkuil 提交者: Mauro Carvalho Chehab

[media] go7007: fix sparse warnings

drivers/media/usb/go7007/go7007-usb.c:699:30: warning: cast to restricted __le16
drivers/media/usb/go7007/go7007-usb.c:769:38: warning: cast to restricted __le16
drivers/media/usb/go7007/go7007-usb.c:770:39: warning: cast to restricted __le16
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 ee40d32f
...@@ -696,7 +696,7 @@ static int go7007_usb_ezusb_write_interrupt(struct go7007 *go, ...@@ -696,7 +696,7 @@ static int go7007_usb_ezusb_write_interrupt(struct go7007 *go,
sizeof(status_reg), timeout); sizeof(status_reg), timeout);
if (r < 0) if (r < 0)
break; break;
status_reg = le16_to_cpu(*((u16 *)go->usb_buf)); status_reg = le16_to_cpu(*((__le16 *)go->usb_buf));
if (!(status_reg & 0x0010)) if (!(status_reg & 0x0010))
break; break;
msleep(10); msleep(10);
...@@ -751,7 +751,7 @@ static int go7007_usb_onboard_write_interrupt(struct go7007 *go, ...@@ -751,7 +751,7 @@ static int go7007_usb_onboard_write_interrupt(struct go7007 *go,
static void go7007_usb_readinterrupt_complete(struct urb *urb) static void go7007_usb_readinterrupt_complete(struct urb *urb)
{ {
struct go7007 *go = (struct go7007 *)urb->context; struct go7007 *go = (struct go7007 *)urb->context;
u16 *regs = (u16 *)urb->transfer_buffer; __le16 *regs = (__le16 *)urb->transfer_buffer;
int status = urb->status; int status = urb->status;
if (status) { if (status) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册