Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Harvey Harrison and committed by
Mauro Carvalho Chehab
513edce6 664b11fc

+1 -2
+1 -2
drivers/media/video/pvrusb2/pvrusb2-hdw.c
··· 1314 1314 memcpy(fw_ptr, fw_entry->data + fw_done, bcnt); 1315 1315 /* Usbsnoop log shows that we must swap bytes... */ 1316 1316 for (icnt = 0; icnt < bcnt/4 ; icnt++) 1317 - ((u32 *)fw_ptr)[icnt] = 1318 - ___swab32(((u32 *)fw_ptr)[icnt]); 1317 + ((u32 *)fw_ptr)[icnt] = swab32(((u32 *)fw_ptr)[icnt]); 1319 1318 1320 1319 ret |= usb_bulk_msg(hdw->usb_dev, pipe, fw_ptr,bcnt, 1321 1320 &actual_length, HZ);