Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2471428pxj; Sat, 19 Jun 2021 13:24:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxf2oipckNoQhDaM6JYLUdjTGqVeP9x1Q5SrNW3reXzk+1FEf94gmqSTPh8Wi5Kz3PibrlR X-Received: by 2002:a02:1c06:: with SMTP id c6mr9860283jac.121.1624134241047; Sat, 19 Jun 2021 13:24:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624134241; cv=none; d=google.com; s=arc-20160816; b=WGTCT+fIRkGN8FD5tgCSrutugGSXY++I2RW/zwTzvcGL2mD9vQ8m5YF2XhQ57vhEnd b0FXpAvJzu3rLI7qEQMDDQ8jc637Ml+A7aU41zFp3dMwvnqehxXKXFWXWmNVRj7NpcwR ogNx3phlpFR2KcGEvf5tDQL8RNgbQfnkKhDIVUQ5OrBr/VRHtrOdoE43TvRkWHbmeu9N MJ/fnkni4ogPDTe6wk/U/ofOh/qdJsbDKoYd6AsF+E2ZKQNVwUA+1iqG4haJpIdq5TB6 1pg7lViix20l21OwSici0Uej8rZoWDBA+ZRx2jGLolMP+4rluDlPxHFOcopsF2TSJU+v Llyg== 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=1kEBYfCFhGT8hmlM0j+G3fyLwQzlyhiwGGqVcA47674=; b=azEstuc5zpxgiS+o0UkYZUd8RSgOQZpPJY4Z7WDCPk6zKDFbBmTCIbg8N3xwmJrvWG WvfRjmQBetr9mMcIav/6PSkYwhmMd1kNeKUI7zSKWv9dcd1FQysSeEAmaxP7dp/41y2B CRT8tIYR9ODrOLtGgCotEtLt+GIe2uAXVAO7bfkDCIIaKYO/kQTVkZ4+bATDmGGtMQlW XpOFr/Va7BBjUFw7tltn2Al9JZs0oaqMTQphwzgYw0/W2gg1+zM+5gVNpb/uFpggRy0F nLl3ZwxuchGuUEjfeM9tAGY/dAScAWiv1ozlSyS1VYOhTx5WzAbYsYHIO6nvwdHSPeZh pHrw== 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 w8si2346247ilu.43.2021.06.19.13.23.49; Sat, 19 Jun 2021 13:24:01 -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 S233752AbhFSKCM (ORCPT + 99 others); Sat, 19 Jun 2021 06:02:12 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:5052 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231876AbhFSKB5 (ORCPT ); Sat, 19 Jun 2021 06:01:57 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G6WNb23x9zXgZd; Sat, 19 Jun 2021 17:54:39 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Sat, 19 Jun 2021 17:59:44 +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; Sat, 19 Jun 2021 17:59:44 +0800 From: Guangbin Huang To: , , , CC: , , , , Subject: [PATCH net-next 4/8] net: at91_can: use BIT macro Date: Sat, 19 Jun 2021 17:56:25 +0800 Message-ID: <1624096589-13452-5-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1624096589-13452-1-git-send-email-huangguangbin2@huawei.com> References: <1624096589-13452-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) 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/can/at91_can.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.c index 8ea638d04cc7..279878165e5b 100644 --- a/drivers/net/can/at91_can.c +++ b/drivers/net/can/at91_can.c @@ -87,19 +87,19 @@ enum at91_mb_mode { }; /* Interrupt mask bits */ -#define AT91_IRQ_ERRA (1 << 16) -#define AT91_IRQ_WARN (1 << 17) -#define AT91_IRQ_ERRP (1 << 18) -#define AT91_IRQ_BOFF (1 << 19) -#define AT91_IRQ_SLEEP (1 << 20) -#define AT91_IRQ_WAKEUP (1 << 21) -#define AT91_IRQ_TOVF (1 << 22) -#define AT91_IRQ_TSTP (1 << 23) -#define AT91_IRQ_CERR (1 << 24) -#define AT91_IRQ_SERR (1 << 25) -#define AT91_IRQ_AERR (1 << 26) -#define AT91_IRQ_FERR (1 << 27) -#define AT91_IRQ_BERR (1 << 28) +#define AT91_IRQ_ERRA BIT(16) +#define AT91_IRQ_WARN BIT(17) +#define AT91_IRQ_ERRP BIT(18) +#define AT91_IRQ_BOFF BIT(19) +#define AT91_IRQ_SLEEP BIT(20) +#define AT91_IRQ_WAKEUP BIT(21) +#define AT91_IRQ_TOVF BIT(22) +#define AT91_IRQ_TSTP BIT(23) +#define AT91_IRQ_CERR BIT(24) +#define AT91_IRQ_SERR BIT(25) +#define AT91_IRQ_AERR BIT(26) +#define AT91_IRQ_FERR BIT(27) +#define AT91_IRQ_BERR BIT(28) #define AT91_IRQ_ERR_ALL (0x1fff0000) #define AT91_IRQ_ERR_FRAME (AT91_IRQ_CERR | AT91_IRQ_SERR | \ -- 2.8.1