mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 13:55:32 +00:00
V4L/DVB (8742): pvrusb2: use proper byteorder interface
___swab32 is an internal detail of the implementation. Acked-by: Mike Isely <isely@pobox.com> Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
664b11fc72
commit
513edce60f
1 changed files with 1 additions and 2 deletions
|
@ -1314,8 +1314,7 @@ int pvr2_upload_firmware2(struct pvr2_hdw *hdw)
|
|||
memcpy(fw_ptr, fw_entry->data + fw_done, bcnt);
|
||||
/* Usbsnoop log shows that we must swap bytes... */
|
||||
for (icnt = 0; icnt < bcnt/4 ; icnt++)
|
||||
((u32 *)fw_ptr)[icnt] =
|
||||
___swab32(((u32 *)fw_ptr)[icnt]);
|
||||
((u32 *)fw_ptr)[icnt] = swab32(((u32 *)fw_ptr)[icnt]);
|
||||
|
||||
ret |= usb_bulk_msg(hdw->usb_dev, pipe, fw_ptr,bcnt,
|
||||
&actual_length, HZ);
|
||||
|
|
Loading…
Reference in a new issue