Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1763084rwd; Thu, 18 May 2023 17:30:23 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4ZsYpTjjoJUg/fRng7sgo80YQoIg4GJUPWJN6t99OvGUKK0ATrdtsS7bbR1bvrKW2ZLOOV X-Received: by 2002:a17:902:f547:b0:1ae:b2a:8ed7 with SMTP id h7-20020a170902f54700b001ae0b2a8ed7mr800004plf.29.1684456223173; Thu, 18 May 2023 17:30:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684456223; cv=none; d=google.com; s=arc-20160816; b=uY2+W4OcbLlpC++lmoBjbFRZVOpBy+16uetkTDpLwGE9hR8lrDZiFXX93oPnEJDE7w Jsl3X8VSBI7ABH7kf5ySS4Sa4TXLcOcVDJR7tfF3Q/8lyGaVmwEU+yIbeQyxAk41SqWF 9rHfL1PXyuWIjzodWo7pETWc7Y/yXUxnrfVyIQ6vWsvKSoUIhr48l1///Flu+2/58PlM mwtXg/KXyFzZieGyLPkGYM7pABBDDE0bYI4Gu81vnXJNiJaDMisB0whHZof8KwSJ2T7X rA7uMUFUdNms4KHQjpWxnCkrU/Ai4p3zKOcUMaOxhhONsm6m1s5Pz7zSeTjJ+f06jNYa UwRg== 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=AMfahW6oLGHRObTA6rrybI0oq2bzFJD+CcgVRcI95q0=; b=IWUYkSHu7P7pAmE86zEgXrz9LC8OGXux4ycrIDf9RX65Qw7mzRE0NWdwV7A+ZFxdeM L3n4iTYSQDAXLuppe7tGeplkKvj6tecsnSGrfHpAMfB3fkiG4BICWwMFkjS0gkzG/0bG ht2xYn3MDSU8mOCNSnedRxxIIJHoCn68ySJosh9uQGNKcPzyMq5IheDjjucFl6Hg0b1r MW9tqb4QHyRBCHrzmjeA/6KagksJ1Y8nfApKIM1U6dRAg1j5EJ+5HJxH4AI4bQnP65aP +3GhwUkkypP8CWitJsFHobA/dPKK40lb75jTNclYlZcaBOsvcxV9iSuMlSW+w4mraMp4 icgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="qUB74s/Y"; 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 c18-20020a170903235200b001ae533bccc7si2670498plh.322.2023.05.18.17.30.01; Thu, 18 May 2023 17:30:23 -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="qUB74s/Y"; 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 S229733AbjESA0F (ORCPT + 99 others); Thu, 18 May 2023 20:26:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60816 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbjESA0E (ORCPT ); Thu, 18 May 2023 20:26:04 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4B5CA10C6; Thu, 18 May 2023 17:25:50 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id 41be03b00d2f7-5289cf35eeaso194367a12.1; Thu, 18 May 2023 17:25:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684455950; x=1687047950; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=AMfahW6oLGHRObTA6rrybI0oq2bzFJD+CcgVRcI95q0=; b=qUB74s/YaZimii0sfE3q+3Tb8Vk9ayRq3pHJ724br+e/iXX5TPZODU4JGnt7tWGqWP 8rjUus4BPiyAupRUVqet8OEgdI/5hGQZ6ELwQbXXEg0ZV69H2SXBlcWidnyQBacxK8GU tUq/qslNDDRpRMShQ7ZYxhw4II2xEgyQN5rJt8zao+DJSFJJaYdXRsFHIdRgZj9nR4iR PCpsSbm769v74/5n0OWZI/WH8jrk9bqd3njyU+vMRmkdVds2/Joj/FfRE3mutPRwtYhI Clsafxri4jpthwZk3lsggsMcVJNUwmQAsUpxOnKgbECbHzo22PjRYF2XF58hr8WL/kaR uW5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684455950; x=1687047950; 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=AMfahW6oLGHRObTA6rrybI0oq2bzFJD+CcgVRcI95q0=; b=UwkZ+WujTu/nohbq5TqdECQQ4TC+i46zzDNC97IV9CU4buX/0Y9st+bU4ltVhPiMnD +gRB9ISOJJvpo1t0npkiyFg42T8EC6R7TvFP+ijAU2ZC2LDIDFAZrFaBwQKOhu2kgYEH kwMl9z5itV9ErQjfReMa31OFksDVD+6asd6j8u8utMovBvQJi3yD228KNJYHoU6aVb7h nOr+96vUCMI4FU/H5pdzBoszID5qal1zlmDYClXATfE6mHSLj77ayzAmvKvntq0NbS8E 5M8Cw3HJee5l8ALPZuUAKuuueTmb8Rf6iTsllpddZXN1pla87EI+uE4Y9Tv4Z6JmzEPf bGfQ== X-Gm-Message-State: AC+VfDzlZTggeWv2TqDJzU8fc2imkDo5jA+nTdHsicNLcRxN+pSeZVsa /OApva05RCFAUCkg0PscXPs= X-Received: by 2002:a17:903:41c9:b0:1ab:28b4:6d5 with SMTP id u9-20020a17090341c900b001ab28b406d5mr4398400ple.5.1684455949645; Thu, 18 May 2023 17:25:49 -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 t6-20020a170902a5c600b001ae57277a87sm2022696plq.255.2023.05.18.17.25.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 May 2023 17:25:49 -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] Bluetooth: btqca: use le32_to_cpu for ver.soc_id Date: Fri, 19 May 2023 08:25:43 +0800 Message-Id: <20230519002544.3695-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 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 --- 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