diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-08-18 13:38:01 -0700 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-08-18 13:38:01 -0700 |
commit | 82e3269e7afdf7d14b85b98871b0c771ba006cbb (patch) | |
tree | 477c4f5b0d7b9b0ec8f6d053fcfbc062e7cfc42c /linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c | |
parent | b851f2792eb56fb2608fb21a486bd1e1bc90787b (diff) | |
download | mediapointer-dvb-s2-82e3269e7afdf7d14b85b98871b0c771ba006cbb.tar.gz mediapointer-dvb-s2-82e3269e7afdf7d14b85b98871b0c771ba006cbb.tar.bz2 |
pvrusb2: use proper byteorder interface
From: Harvey Harrison <harvey.harrison@gmail.com>
___swab32 is an internal detail of the implementation.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Acked-By: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c')
-rw-r--r-- | linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c index 419a473cf..881610b60 100644 --- a/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/linux/drivers/media/video/pvrusb2/pvrusb2-hdw.c @@ -1324,8 +1324,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); |