mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
Bluetooth: btqca: use le32_to_cpu for ver.soc_id
[ Upstream commit 8153b738bc ]
Use le32_to_cpu for ver.soc_id to fix the following
sparse warning.
drivers/bluetooth/btqca.c:640:24: sparse: warning: restricted
__le32 degrades to integer
Signed-off-by: Min-Hua Chen <minhuadotchen@gmail.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Stable-dep-of: 7dcd3e014aa7 ("Bluetooth: hci_qca: Set BDA quirk bit if fwnode exists in DT")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e5383662fd
commit
29059d0f3b
@@ -637,7 +637,7 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
|
|||||||
snprintf(config.fwname, sizeof(config.fwname),
|
snprintf(config.fwname, sizeof(config.fwname),
|
||||||
"qca/%s", firmware_name);
|
"qca/%s", firmware_name);
|
||||||
else if (qca_is_wcn399x(soc_type)) {
|
else if (qca_is_wcn399x(soc_type)) {
|
||||||
if (ver.soc_id == QCA_WCN3991_SOC_ID) {
|
if (le32_to_cpu(ver.soc_id) == QCA_WCN3991_SOC_ID) {
|
||||||
snprintf(config.fwname, sizeof(config.fwname),
|
snprintf(config.fwname, sizeof(config.fwname),
|
||||||
"qca/crnv%02xu.bin", rom_ver);
|
"qca/crnv%02xu.bin", rom_ver);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user