diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2008-04-28 02:00:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 13:03:31 -0400 |
commit | fd05e720099e8eeddb378305d1a41c1445344b91 (patch) | |
tree | d617918be290b47b35822bc3cf21c8f01dde5dd2 /drivers/usb/atm/ueagle-atm.c | |
parent | 01d7b369887b6feb7c9ce2b20988fafe3f70841c (diff) |
drivers/usb annotations and fixes
* endianness annotations
* endianness fixes
* missing get_unaligned/put_unaligned
It's pretty much all over the place, changes to different files are independent.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Serial-parts-Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/usb/atm/ueagle-atm.c')
-rw-r--r-- | drivers/usb/atm/ueagle-atm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/atm/ueagle-atm.c b/drivers/usb/atm/ueagle-atm.c index abb7d7410e63..4220f22b6660 100644 --- a/drivers/usb/atm/ueagle-atm.c +++ b/drivers/usb/atm/ueagle-atm.c | |||
@@ -996,7 +996,7 @@ static void __uea_load_page_e4(struct uea_softc *sc, u8 pageno, int boot) | |||
996 | blockoffset = sc->dsp_firm->data + le32_to_cpu(blockidx->PageOffset); | 996 | blockoffset = sc->dsp_firm->data + le32_to_cpu(blockidx->PageOffset); |
997 | 997 | ||
998 | bi.dwSize = cpu_to_be32(blocksize); | 998 | bi.dwSize = cpu_to_be32(blocksize); |
999 | bi.dwAddress = swab32(blockidx->PageAddress); | 999 | bi.dwAddress = cpu_to_be32(le32_to_cpu(blockidx->PageAddress)); |
1000 | 1000 | ||
1001 | uea_dbg(INS_TO_USBDEV(sc), | 1001 | uea_dbg(INS_TO_USBDEV(sc), |
1002 | "sending block %u for DSP page %u size %u address %x\n", | 1002 | "sending block %u for DSP page %u size %u address %x\n", |
@@ -1040,7 +1040,7 @@ static void uea_load_page_e4(struct work_struct *work) | |||
1040 | return; | 1040 | return; |
1041 | 1041 | ||
1042 | p = (struct l1_code *) sc->dsp_firm->data; | 1042 | p = (struct l1_code *) sc->dsp_firm->data; |
1043 | if (pageno >= p->page_header[0].PageNumber) { | 1043 | if (pageno >= le16_to_cpu(p->page_header[0].PageNumber)) { |
1044 | uea_err(INS_TO_USBDEV(sc), "invalid DSP page %u requested\n", pageno); | 1044 | uea_err(INS_TO_USBDEV(sc), "invalid DSP page %u requested\n", pageno); |
1045 | return; | 1045 | return; |
1046 | } | 1046 | } |
@@ -1065,7 +1065,7 @@ static void uea_load_page_e4(struct work_struct *work) | |||
1065 | bi.bPageNumber = 0xff; | 1065 | bi.bPageNumber = 0xff; |
1066 | bi.wReserved = cpu_to_be16(UEA_RESERVED); | 1066 | bi.wReserved = cpu_to_be16(UEA_RESERVED); |
1067 | bi.dwSize = cpu_to_be32(E4_PAGE_BYTES(p->page_header[0].PageSize)); | 1067 | bi.dwSize = cpu_to_be32(E4_PAGE_BYTES(p->page_header[0].PageSize)); |
1068 | bi.dwAddress = swab32(p->page_header[0].PageAddress); | 1068 | bi.dwAddress = cpu_to_be32(le32_to_cpu(p->page_header[0].PageAddress)); |
1069 | 1069 | ||
1070 | /* send block info through the IDMA pipe */ | 1070 | /* send block info through the IDMA pipe */ |
1071 | if (uea_idma_write(sc, &bi, E4_BLOCK_INFO_SIZE)) | 1071 | if (uea_idma_write(sc, &bi, E4_BLOCK_INFO_SIZE)) |