Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97751
b: refs/heads/master
c: fa9c13a
h: refs/heads/master
i:
  97749: 19f4dd8
  97747: 2628826
  97743: 45373cb
v: v3
  • Loading branch information
Al Viro authored and Mauro Carvalho Chehab committed Jun 5, 2008
1 parent 0b9db5c commit d743492
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 581a7f1a2ddedbc27ad76f518b861ce1e60ff5ab
refs/heads/master: fa9c13a383ea60b5e0a89e9e180683411bc5552c
7 changes: 4 additions & 3 deletions trunk/drivers/media/dvb/dvb-usb/m920x.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "qt1010.h"
#include "tda1004x.h"
#include "tda827x.h"
#include <asm/unaligned.h>

/* debug */
static int dvb_usb_m920x_debug;
Expand Down Expand Up @@ -347,13 +348,13 @@ static int m920x_firmware_download(struct usb_device *udev, const struct firmwar

for (pass = 0; pass < 2; pass++) {
for (i = 0; i + (sizeof(u16) * 3) < fw->size;) {
value = le16_to_cpu(*(u16 *)(fw->data + i));
value = get_unaligned_le16(fw->data + i);
i += sizeof(u16);

index = le16_to_cpu(*(u16 *)(fw->data + i));
index = get_unaligned_le16(fw->data + i);
i += sizeof(u16);

size = le16_to_cpu(*(u16 *)(fw->data + i));
size = get_unaligned_le16(fw->data + i);
i += sizeof(u16);

if (pass == 1) {
Expand Down

0 comments on commit d743492

Please sign in to comment.