projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2606ecb
)
Bluetooth: Fix endianess issue in the ath3k driver
author
Peng Chen
<pengchen@qca.qualcomm.com>
Thu, 6 Sep 2012 11:30:43 +0000
(19:30 +0800)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Fri, 7 Mar 2014 18:09:40 +0000
(20:09 +0200)
The version is always in little endian format. This patch makes the
driver work on both little and big endian CPUs.
Signed-off-by: Peng Chen <pengchen@qca.qualcomm.com>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
drivers/bluetooth/ath3k.c
patch
|
blob
|
history
diff --git
a/drivers/bluetooth/ath3k.c
b/drivers/bluetooth/ath3k.c
index bc5cf90c5ff6064444698ba0077a1cc9346fbe8b..be571fef185da6a597fcdac3d15093ed8e47fb5b 100644
(file)
--- a/
drivers/bluetooth/ath3k.c
+++ b/
drivers/bluetooth/ath3k.c
@@
-367,7
+367,7
@@
static int ath3k_load_patch(struct usb_device *udev)
}
snprintf(filename, ATH3K_NAME_LEN, "ar3k/AthrBT_0x%08x.dfu",
-
fw_version.rom_version
);
+
le32_to_cpu(fw_version.rom_version)
);
ret = request_firmware(&firmware, filename, &udev->dev);
if (ret < 0) {
@@
-429,7
+429,7
@@
static int ath3k_load_syscfg(struct usb_device *udev)
}
snprintf(filename, ATH3K_NAME_LEN, "ar3k/ramps_0x%08x_%d%s",
-
fw_version.rom_version
, clk_value, ".dfu");
+
le32_to_cpu(fw_version.rom_version)
, clk_value, ".dfu");
ret = request_firmware(&firmware, filename, &udev->dev);
if (ret < 0) {