diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2008-06-22 13:19:59 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-07-20 06:13:35 -0400 |
commit | 86ecc02755ea2d00925b344272b49b26d610bbe2 (patch) | |
tree | 80af44ca9faae6b3b7be42b2f8454d66d608185f /drivers/media/video | |
parent | 3aa7110e1c415c38c42ef77be0ef2c7a888b9e16 (diff) |
V4L/DVB (8133): cx23885 endianness fixes
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video')
-rw-r--r-- | drivers/media/video/cx23885/cx23885-core.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/video/cx23885/cx23885-core.c b/drivers/media/video/cx23885/cx23885-core.c index c4cc2f3b8876..d17343ea0d33 100644 --- a/drivers/media/video/cx23885/cx23885-core.c +++ b/drivers/media/video/cx23885/cx23885-core.c | |||
@@ -291,9 +291,9 @@ int cx23885_sram_channel_setup(struct cx23885_dev *dev, | |||
291 | lines = 6; | 291 | lines = 6; |
292 | BUG_ON(lines < 2); | 292 | BUG_ON(lines < 2); |
293 | 293 | ||
294 | cx_write(8 + 0, cpu_to_le32(RISC_JUMP | RISC_IRQ1 | RISC_CNT_INC) ); | 294 | cx_write(8 + 0, RISC_JUMP | RISC_IRQ1 | RISC_CNT_INC); |
295 | cx_write(8 + 4, cpu_to_le32(8) ); | 295 | cx_write(8 + 4, 8); |
296 | cx_write(8 + 8, cpu_to_le32(0) ); | 296 | cx_write(8 + 8, 0); |
297 | 297 | ||
298 | /* write CDT */ | 298 | /* write CDT */ |
299 | for (i = 0; i < lines; i++) { | 299 | for (i = 0; i < lines; i++) { |
@@ -408,11 +408,11 @@ static void cx23885_risc_disasm(struct cx23885_tsport *port, | |||
408 | dev->name, risc->cpu, (unsigned long)risc->dma); | 408 | dev->name, risc->cpu, (unsigned long)risc->dma); |
409 | for (i = 0; i < (risc->size >> 2); i += n) { | 409 | for (i = 0; i < (risc->size >> 2); i += n) { |
410 | printk("%s: %04d: ", dev->name, i); | 410 | printk("%s: %04d: ", dev->name, i); |
411 | n = cx23885_risc_decode(risc->cpu[i]); | 411 | n = cx23885_risc_decode(le32_to_cpu(risc->cpu[i])); |
412 | for (j = 1; j < n; j++) | 412 | for (j = 1; j < n; j++) |
413 | printk("%s: %04d: 0x%08x [ arg #%d ]\n", | 413 | printk("%s: %04d: 0x%08x [ arg #%d ]\n", |
414 | dev->name, i + j, risc->cpu[i + j], j); | 414 | dev->name, i + j, risc->cpu[i + j], j); |
415 | if (risc->cpu[i] == RISC_JUMP) | 415 | if (risc->cpu[i] == cpu_to_le32(RISC_JUMP)) |
416 | break; | 416 | break; |
417 | } | 417 | } |
418 | } | 418 | } |