aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-08-18 17:38:01 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-12 09:36:52 -0200
commit513edce60f184d90ef4a6d33917264d49c2b07fd (patch)
tree17959dfacbd9fa0867a83b1d19e94fb0fe3bf251 /drivers/media/video
parent664b11fc725830b59265cd9ec35a4396514d2b26 (diff)
downloadkernel_samsung_smdk4412-513edce60f184d90ef4a6d33917264d49c2b07fd.zip
kernel_samsung_smdk4412-513edce60f184d90ef4a6d33917264d49c2b07fd.tar.gz
kernel_samsung_smdk4412-513edce60f184d90ef4a6d33917264d49c2b07fd.tar.bz2
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>
Diffstat (limited to 'drivers/media/video')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-hdw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index f051c6a..7fa903a 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -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);