Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2288905rwd; Fri, 19 May 2023 03:50:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7BI8U/5mbbBVDsao/LSxgObandUDJDb7s6Xuaig1RCUhweiUhIK307t1bA7zMyBG3sDbrD X-Received: by 2002:a05:6a00:ccc:b0:63d:2f13:1f3 with SMTP id b12-20020a056a000ccc00b0063d2f1301f3mr2615228pfv.33.1684493407693; Fri, 19 May 2023 03:50:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684493407; cv=none; d=google.com; s=arc-20160816; b=kDMYW5ZYruaZQzxmXlrUUdSMYP+dJ9l7U0qfIEUtEKGJUYZF1Ywmacd41VSxPvgf4Q uGl5KXQY2C+1nttjaZ6cCprpk7jaCUD7ze+Uk9/le7jQL1GXotPQvQcCXMaNmFo6uiqM H3kzr72O/jgU6J2jdfOdhz304L+VhorU8wAuuXSamkxtGojhuFXWCPZDwjO1v6aA8hlq kB7R7ke6fAmYGI88esggiXqNsdZcWXfRsIBks9BnyGBbKMoEryYckuZLOj5hrqc+sPfk PS11g9mBPNZUzcvvnlJqQa70jzMbAM73f1QciwztZ1oMHsMDnaiP5XdHvbuOMvlOQNu8 czrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=DWt2qP+e1SDrtcGYZghlo0NbjI0r5adHq8yWB5oHK48=; b=GfuR8FN7Cuods3x0lWCmXVtft5nOywzOCeuqHgLHLBneOusSH7FNymEH7fabmTsHPj ArkI7IKAH0nbFxAkurQbvdcRLjy7ECwOuuFRUS4GB1VrSRsLrQhonm3d4vmXXIJFI8zg On+ufbMpV2IrZ6/QmINNkKK0XPK/wCz2tH0ryQe8EYVs/YptjqV4XKv2cvqIxjAnPLmJ oOxUd1oSpodLvMl51SbvglnqbP/q3+wKmEL3g8v+SmJ7dVtgyPLHW8R6p5Iiwq/jX3B4 T0KjL1mylVO6zSy/yXsbkUp84Uut7e/SIOLWxFVSPzVv+TfX4o6AZV91pZaVFqDHdqhZ r2bg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=XhcSU8td; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x67-20020a626346000000b0063d238b6049si3707650pfb.286.2023.05.19.03.49.46; Fri, 19 May 2023 03:50:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=XhcSU8td; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231509AbjESKne (ORCPT + 99 others); Fri, 19 May 2023 06:43:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231602AbjESKnc (ORCPT ); Fri, 19 May 2023 06:43:32 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 029D010C3; Fri, 19 May 2023 03:43:29 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1ae40dcdc18so23001655ad.2; Fri, 19 May 2023 03:43:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684493008; x=1687085008; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=DWt2qP+e1SDrtcGYZghlo0NbjI0r5adHq8yWB5oHK48=; b=XhcSU8tdtKzF3mnZo9ROpw/TdyCIIxXjIG2LGXwNisIkIbxfIvJknJ8ahFnnDR+mwD KRDaLMImjHfskU1v18PlVGr+dS7EajfFntnO2HceAcw6L655uIj6YQ2xyNHd5xE4YJd1 5GtkEXmAF05p5dze+1Yn9NoT44UntXfDBjW6Ha7iFY82vQQ9K5nDzhD3T2eqbPSIxUTB XPg5S52rFAPES0lsdGTrXgaCkBLKVnNe+cbsv701InUBVbmgAc1C5oTfMm5qwKjy9rxs 21vrlJ94MYLlHhkBZaC5bakzkFAXJHMxWNlrsafuFI6PRh9FGszOY1JuaXIJHFC9d2lu ewog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684493008; x=1687085008; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DWt2qP+e1SDrtcGYZghlo0NbjI0r5adHq8yWB5oHK48=; b=JBu8WumXDNaJut0NuvEmyVuodsZYy5CLDoq+5+pwfEU1w/nQBRmakotFNEUaVfEtc3 bldhsVLzVreCoRfdK7/TMm6D2t1AqYYm4xm8AXCIAJeSxpEsM49eSXqDyOL+nZwfNsxW os4j65rpmVF1SSjMIkA89Ktx52StvTmXJoW7YcLb4HiCayhRnHTIJsozD8OAqY+x2j9/ 2M6E6OBFONrak82rU0Q0ia4PinU7SSUjYNTkex5o+LakHmBfIobe4QY9/VaIgtvOQMZZ ofHD8aKK2sw1l8UBBetMa4ToKLY570cHnMGefKCi1EbJOsPPGk/juOp3RUhb9UorcvRf 2u2Q== X-Gm-Message-State: AC+VfDzdbkV+4t7hRLq2XMChM9KGhNZz2A0rp4o3YcuNoUaE7fZbqzoP 1hir0r5OJVpoX9v0+n2lAKM= X-Received: by 2002:a17:902:e9d5:b0:1ac:8cd6:9323 with SMTP id 21-20020a170902e9d500b001ac8cd69323mr2012218plk.22.1684493008298; Fri, 19 May 2023 03:43:28 -0700 (PDT) Received: from ubuntu777.domain.name (36-228-97-28.dynamic-ip.hinet.net. [36.228.97.28]) by smtp.gmail.com with ESMTPSA id j13-20020a170902c3cd00b001a285269b70sm3080693plj.280.2023.05.19.03.43.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 03:43:27 -0700 (PDT) From: Min-Hua Chen To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz Cc: Min-Hua Chen , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] Bluetooth: btqca: use le32_to_cpu for ver.soc_id Date: Fri, 19 May 2023 18:43:23 +0800 Message-Id: <20230519104324.4623-1-minhuadotchen@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org 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 --- Change since v1: fix the line length > 80 error reported by bluez.test.bot --- drivers/bluetooth/btqca.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bluetooth/btqca.c b/drivers/bluetooth/btqca.c index fd0941fe8608..e7e58a956d15 100644 --- a/drivers/bluetooth/btqca.c +++ b/drivers/bluetooth/btqca.c @@ -637,7 +637,7 @@ int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate, snprintf(config.fwname, sizeof(config.fwname), "qca/%s", firmware_name); 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), "qca/crnv%02xu.bin", rom_ver); } else { -- 2.34.1