Message ID | 20230208185645.GA14681@matrix-ESPRIMO-P710 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp3630748wrn; Wed, 8 Feb 2023 11:02:34 -0800 (PST) X-Google-Smtp-Source: AK7set91XfXb/PWF6wO3A88Id7P5DcTOFTxwJE0odYi81Ip1+MULvDJlB71Kz3MrWMyguLC171oy X-Received: by 2002:a17:902:c946:b0:189:f460:d24b with SMTP id i6-20020a170902c94600b00189f460d24bmr8704238pla.5.1675882954502; Wed, 08 Feb 2023 11:02:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675882954; cv=none; d=google.com; s=arc-20160816; b=Z8chRjOlmj5iadJkQRAS2dVgEENpMswG3jKxufIE23kITlEWLpLi/kh0xG++X2Ab6H DeOOka0b3AfyWYo8X1NXA68eIXyGF2UAQqbsVxyl2qWeZx3p3opFdDzAK3oKuVRHSO4T sgy6ImA7EBN41xb40WRjuynCf/47qkq8qRy1RtvGJ84CbiKpu9QtuHWOqAP0ou/hzqa9 Y7pj8G0ByfaMxXDCM1yH1HreVtI3mOYDMvaXC0db0ItmlDA0Vfi9OKtlvx9tQBR1gBqU KGq4PmAVFXrwNJikEJ2YYntvuwNJa1bWwMXuxAnSXnS7CQ6drhP/gN+SX8RhJ0Vpfce5 apHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:to:from:date:dkim-signature; bh=XIo7KpMDaRfgRZgMFrjY9BiU3ZghspQ14enw5m/OmAA=; b=UD1AHcbWRa0MlZ9ZOismi5QAIxBxPG3lTWBE3NN4w93UvcRrHw8mmBZ1TYSVpnOFYu BGBUEZ3VP8Zk8fHMA9GcwJbtPkHVRHTXgOuyOm8ogZOqHzZ1CO3yajF+1WEEK+aGLDxm xTys2iZStnoHs5nIhqMWqC2Y3EkWuYicBxqVbYmieHGWKROHptzSnkaIArvSEE/Lbors 6VC+sl26QmFtNHMZF4hnFgT6RJtBQNZZlFq0Ofl1d8xko++Yf49unaYDStNc9XY01rqo xWR7gK/bR+cROyLviMBvEvYaQmn2SrURImP/ZHE3lIy+S5sxQtH1xBOUZTM1xyvrNAdW Fj8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=OTaIzU5p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z9-20020a170903018900b001944e99d38fsi68863plg.557.2023.02.08.11.02.20; Wed, 08 Feb 2023 11:02:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=20210112 header.b=OTaIzU5p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S231336AbjBHS4y (ORCPT <rfc822;ivan.orlov0322@gmail.com> + 99 others); Wed, 8 Feb 2023 13:56:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231331AbjBHS4v (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 8 Feb 2023 13:56:51 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72E7CCDE7 for <linux-kernel@vger.kernel.org>; Wed, 8 Feb 2023 10:56:49 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id j29-20020a05600c1c1d00b003dc52fed235so2240736wms.1 for <linux-kernel@vger.kernel.org>; Wed, 08 Feb 2023 10:56:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=XIo7KpMDaRfgRZgMFrjY9BiU3ZghspQ14enw5m/OmAA=; b=OTaIzU5p4Vm1ss7vcxGXZ3O5xVEX3TMR7EvPLga0WhoDWNy3jIevXkrXc9T6IOQjjh 9GaCCaN2SV9daZjVsmSs3EIR4Q9hkBamEM21uUfYBpsqF/JEM8SnL8NE2Nxd/4j6aeMC /g8LyRMMqJDBZgkaq+9r5dtP+ZFPqK+81bhGGvatxqZigVHIOX2CkbsaNRAN6OBe2uJU Cpp47s6HpS03YlhyTX28n2wpGWf9bqWaiDsdWmBOwfkmLsrt0bZrTAHxD4v7sKuEtvOS qcY5NI++ZIqwQpjMEWQYYXsysgFm095LWGKuqGqtuekvzM1WCU41QqeIKXNS+vmNCF1a khcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XIo7KpMDaRfgRZgMFrjY9BiU3ZghspQ14enw5m/OmAA=; b=X+SPKzNKFleb9l0/mpFZsjG44PWPwU8OrjJo/gqGz1KXFrVxkpPfz3vo73NCXU/H3Q UVq7et+RWthgWUATLEZXgly4Svl3BUpZEOYI3tgaRnyVOIK3t6JdQ+4HSEPJuLfxj+U6 D8K4SrJZRTfOhpwrbOsBZJicLIkVb6fH3HZhbWI6TaYqj38khVmYWLhi5qjXkbWN03IQ MLh6woweXnpCxpzUbVWarw74mlcJ0iLQQKSrzg8nMhfijplF18TsoPpiu2uglXovi/x+ vsXxLePWkWE9s64bwhvARdLd2jdYSLDTMss4FRu/nsd47RMQCLNwmHbIrsS2zqwUcOo3 0o9A== X-Gm-Message-State: AO0yUKVpj35+vTnrnb5ZPqFN7NbRD7hSu91rLlxUhp4LLu7/Ms5hk973 lq/3C18NzgWoKw87ZU7B77s= X-Received: by 2002:a05:600c:3ca3:b0:3dc:5ae4:c13d with SMTP id bg35-20020a05600c3ca300b003dc5ae4c13dmr10206985wmb.4.1675882607938; Wed, 08 Feb 2023 10:56:47 -0800 (PST) Received: from matrix-ESPRIMO-P710 (p57935146.dip0.t-ipconnect.de. [87.147.81.70]) by smtp.gmail.com with ESMTPSA id r13-20020a05600c35cd00b003dc433355aasm2698984wmq.18.2023.02.08.10.56.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Feb 2023 10:56:47 -0800 (PST) Date: Wed, 8 Feb 2023 19:56:45 +0100 From: Philipp Hortmann <philipp.g.hortmann@gmail.com> To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v2] staging: rtl8192e: Use BIT() instead of << for bit field MSR_LINK_MASK Message-ID: <20230208185645.GA14681@matrix-ESPRIMO-P710> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1757290645157917318?= X-GMAIL-MSGID: =?utf-8?q?1757290645157917318?= |
Series |
[v2] staging: rtl8192e: Use BIT() instead of << for bit field MSR_LINK_MASK
|
|
Commit Message
Philipp Hortmann
Feb. 8, 2023, 6:56 p.m. UTC
Use commonly used BIT() macro to define MSR_LINK_MASK. Equation is
not accepted by checkpatch because of missing spaces. Therefore line
needs to change anyhow.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
---
V1->V2: Changed patch, title and description
Calculate MSR_LINK_MASK ((1<<0)|(1<<1)) = 3 is not wanted for
bit fields
Old patch name: Calculate definition of MSR_LINK_MASK
---
drivers/staging/rtl8192e/rtl8192e/r8192E_hw.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/rtl8192e/rtl8192e/r8192E_hw.h b/drivers/staging/rtl8192e/rtl8192e/r8192E_hw.h index 8b8a870fcbbd..99640c4779f7 100644 --- a/drivers/staging/rtl8192e/rtl8192e/r8192E_hw.h +++ b/drivers/staging/rtl8192e/rtl8192e/r8192E_hw.h @@ -170,7 +170,7 @@ enum _RTL8192PCI_HW { #define BW_OPMODE_20MHZ BIT2 IC_VERRSION = 0x301, MSR = 0x303, -#define MSR_LINK_MASK ((1<<0)|(1<<1)) +#define MSR_LINK_MASK (BIT(1) | BIT(0)) #define MSR_LINK_MANAGED 2 #define MSR_LINK_ADHOC 1 #define MSR_LINK_MASTER 3