diff options
author | Patrick Boettcher <devnull@localhost> | 2005-04-19 22:02:58 +0000 |
---|---|---|
committer | Patrick Boettcher <devnull@localhost> | 2005-04-19 22:02:58 +0000 |
commit | fff9d155d7a3fbe4903f6a037a6218aeae9e55aa (patch) | |
tree | c8cbee0056243ef63d8e252f5d03f7ce4fc0b6f7 /linux/drivers/media/dvb/dvb-usb/dvb-usb-firmware.c | |
parent | ad0bfa666521692284a7e8cc3b7aa69b59274731 (diff) | |
download | mediapointer-dvb-s2-fff9d155d7a3fbe4903f6a037a6218aeae9e55aa.tar.gz mediapointer-dvb-s2-fff9d155d7a3fbe4903f6a037a6218aeae9e55aa.tar.bz2 |
firmware load fixed for big-endian (thanks to Martin Loschwitz (madkiss))
Diffstat (limited to 'linux/drivers/media/dvb/dvb-usb/dvb-usb-firmware.c')
-rw-r--r-- | linux/drivers/media/dvb/dvb-usb/dvb-usb-firmware.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/dvb-usb/dvb-usb-firmware.c b/linux/drivers/media/dvb/dvb-usb/dvb-usb-firmware.c index 6d5abc3e7..5244e3977 100644 --- a/linux/drivers/media/dvb/dvb-usb/dvb-usb-firmware.c +++ b/linux/drivers/media/dvb/dvb-usb/dvb-usb-firmware.c @@ -65,7 +65,9 @@ int usb_cypress_load_firmware(struct usb_device *udev, const char *filename, int err("could not stop the USB controller CPU."); for(i = 0; p[i+3] == 0 && i < fw->size; ) { b = (u8 *) &p[i]; - addr = *((u16 *) &b[1]); + addr = cpu_to_le16( *((u16 *) &b[1]) ); + + deb_fw("writing to address 0x%04x (buffer: 0x%02x%02x)\n",addr,b[1],b[2]); ret = usb_cypress_writemem(udev,addr,&b[4],b[0]); |