Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp220669pxj; Wed, 16 Jun 2021 00:28:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZ1zsmEYThZP267dEMypgxYQ+h/+JLgYrVKmXL7+8LtY1lGTTou6+itnwuUqWZWFduW6dJ X-Received: by 2002:a05:6e02:20c8:: with SMTP id 8mr2569975ilq.67.1623828527339; Wed, 16 Jun 2021 00:28:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623828527; cv=none; d=google.com; s=arc-20160816; b=OTbDcy9ZPrZk8s9MxB/wtycZIm77zL+ST4ipfPC1Sblv8WDKCNKmDk1MwaOS0+n1rP cb5L3rFnub0CUpMyDU0SesjlT23VzNWp/DLS+jTOFRp0iGENK4iUIlNMyPqpa8xnaY3h ZLE29Qm7UuNrcGZP9HoCPANO4vOqpFaOkfiyOj+D13Fg+gtI7lIKq8bkkhIYFGIXtl4y /i5XNq/STtu7DOCY0WYh+hY6i3HbBpmG/v2yepckNrSm+fo4GKmm+ZdzPDXoVHpTtZb/ xAbK4gV0cnuYg3oWePQXnxENsaIbGNxuZXsOxat67w1dPDdgDn8pYGHeb44PnYp23qNd 1WCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=UdLLe5ee3TwBd+a7uQeEaSqQYjQfOOrjLMNYWmncrr4=; b=05UZ37RXyiBFwuq5HiV4QQFPYadAc5n9cXEgHqIu+drcJW43fCzvxJztfqcpC4yMU7 EXWipJO0Qpn5GeXNGi+TeeISVxwIgf3pjV7S2l1pkp5J+CoSX3/pQHHoSm9FbvHrJlfa /Yn7nw74WPZB7DyYe9+Y5prXNYGGrZcqp4a9x1/6tRMUq+s1Gig2PZEqwq1oa9EnlRHo FU3uaLSbYQ1qNmN5pAAmNEgdHkSfinTA/I6IU7gEvsFPgcvGggq8XvECnIUIXqoiH9U8 1arR+Brjp3qm1VCIITHhigMqnvg/ewmc9adaPYSNDAUAzVQ4HZ9q4aFltu8lLD6kBvoj ZK2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c15si1421437iln.17.2021.06.16.00.28.35; Wed, 16 Jun 2021 00:28:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232186AbhFPH3f (ORCPT + 99 others); Wed, 16 Jun 2021 03:29:35 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:4942 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231667AbhFPH3C (ORCPT ); Wed, 16 Jun 2021 03:29:02 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4G4c9r6lbGz6yZh; Wed, 16 Jun 2021 15:23:44 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Wed, 16 Jun 2021 15:26:54 +0800 Received: from localhost.localdomain (10.67.165.24) by dggemi759-chm.china.huawei.com (10.1.198.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Wed, 16 Jun 2021 15:26:54 +0800 From: Guangbin Huang To: , , , , CC: , , , Subject: [PATCH net-next 10/15] net: cosa: use BIT macro Date: Wed, 16 Jun 2021 15:23:36 +0800 Message-ID: <1623828221-48349-11-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1623828221-48349-1-git-send-email-huangguangbin2@huawei.com> References: <1623828221-48349-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggemi759-chm.china.huawei.com (10.1.198.145) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Li This patch uses the BIT macro for setting individual bits, to fix the following checkpatch.pl issue: CHECK: Prefer using the BIT macro. Signed-off-by: Peng Li Signed-off-by: Guangbin Huang --- drivers/net/wan/cosa.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wan/cosa.c b/drivers/net/wan/cosa.c index a6629dc..ade6da7 100644 --- a/drivers/net/wan/cosa.c +++ b/drivers/net/wan/cosa.c @@ -122,9 +122,9 @@ struct channel_data { }; /* cosa->firmware_status bits */ -#define COSA_FW_RESET (1<<0) /* Is the ROM monitor active? */ -#define COSA_FW_DOWNLOAD (1<<1) /* Is the microcode downloaded? */ -#define COSA_FW_START (1<<2) /* Is the microcode running? */ +#define COSA_FW_RESET BIT(0) /* Is the ROM monitor active? */ +#define COSA_FW_DOWNLOAD BIT(1) /* Is the microcode downloaded? */ +#define COSA_FW_START BIT(2) /* Is the microcode running? */ struct cosa_data { int num; /* Card number */ -- 2.8.1