Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2472185pxj; Sat, 19 Jun 2021 13:25:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzU0x6utyS4EnTQEH0tOdltOKYih2B7UGUgLPztTUm9f868iw2TSjxy6OdpzmeUG7DSHY07 X-Received: by 2002:a05:6402:1001:: with SMTP id c1mr12383546edu.26.1624134335861; Sat, 19 Jun 2021 13:25:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624134335; cv=none; d=google.com; s=arc-20160816; b=pDIVm0QL5oyjPx8I9QXBmQ3uOaMmD1VJ1oe1Xtw7RyDOOm8wthaKNSw+cnzGLKBBTt NJiM2vddwefJ/mTVgyjxXdgv8+dtNa090rt1Klhzn2WkYcYYHYqCV36eHmGVHrnfPsvv NvcjRZqNleXWULXev0v4ePy8rnSQNu8DyRCARe16MPjtIuj7UFMwk/3KBBC2NuTT0Llh 9tEMW1XA2LH76zmDoaVPa++nGQluW8AM2Yw9TUFPhLcmtNvkdFm7KoHJoooKmpun0F55 y3mStm3JC7vV5eg6V1u+eYbFYvMkk+zRH559Ynnwh44faVIGu3uHPCW3BvV/GVLTYx1H dsxg== 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=sC8MZ3fKhDGCXwzf4sWeE3TkkD7EEjbwn7RLEZyUb6U=; b=L+clJHx2/XLyQHzP7DV845ysQqnPjRhnYfMU3hCi9VGjUIPUSBYSoXEtDK+2lsuSET rAEuwvnZ5vHsik/rzcI37DCrBxSu1Us+JCtRVfENlSzCj7xK19+5hnN51AwJR9NGlDA3 kLG7B/WdotboHjWC0Gag/DAnFvQews7izphVbDSnYFHBNCtTo24VFloySIN+gtl2kCte ZKgr2F4BSo2E+JJ2mPdRxCpfVmRibSXrY3+vWA7z9SQyy1K0Tn+cJW7gEejaaBfI5ArH blbzon2wShIvjIDOx+D9CtHQtO7vt92QT2OXAAIjfkPjc4KfZaFak/50Iy5mnGIP5gbY fX8w== 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 o12si8065006edc.382.2021.06.19.13.25.13; Sat, 19 Jun 2021 13:25:35 -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 S233794AbhFSKCV (ORCPT + 99 others); Sat, 19 Jun 2021 06:02:21 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:5053 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229899AbhFSKCB (ORCPT ); Sat, 19 Jun 2021 06:02:01 -0400 Received: from dggemv703-chm.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4G6WNg46gmzXgZd; Sat, 19 Jun 2021 17:54:43 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv703-chm.china.huawei.com (10.3.19.46) 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:43 +0800 From: Guangbin Huang To: , , , CC: , , , , Subject: [PATCH net-next 3/8] net: at91_can: fix the code style issue about macro Date: Sat, 19 Jun 2021 17:56:24 +0800 Message-ID: <1624096589-13452-4-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 Macros with complex values should be enclosed in parentheses Signed-off-by: Peng Li Signed-off-by: Guangbin Huang --- drivers/net/can/at91_can.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/can/at91_can.c b/drivers/net/can/at91_can.c index 058c18fac167..8ea638d04cc7 100644 --- a/drivers/net/can/at91_can.c +++ b/drivers/net/can/at91_can.c @@ -43,14 +43,14 @@ enum at91_reg { }; /* Mailbox registers (0 <= i <= 15) */ -#define AT91_MMR(i) (enum at91_reg)(0x200 + ((i) * 0x20)) -#define AT91_MAM(i) (enum at91_reg)(0x204 + ((i) * 0x20)) -#define AT91_MID(i) (enum at91_reg)(0x208 + ((i) * 0x20)) -#define AT91_MFID(i) (enum at91_reg)(0x20C + ((i) * 0x20)) -#define AT91_MSR(i) (enum at91_reg)(0x210 + ((i) * 0x20)) -#define AT91_MDL(i) (enum at91_reg)(0x214 + ((i) * 0x20)) -#define AT91_MDH(i) (enum at91_reg)(0x218 + ((i) * 0x20)) -#define AT91_MCR(i) (enum at91_reg)(0x21C + ((i) * 0x20)) +#define AT91_MMR(i) ((enum at91_reg)(0x200 + ((i) * 0x20))) +#define AT91_MAM(i) ((enum at91_reg)(0x204 + ((i) * 0x20))) +#define AT91_MID(i) ((enum at91_reg)(0x208 + ((i) * 0x20))) +#define AT91_MFID(i) ((enum at91_reg)(0x20C + ((i) * 0x20))) +#define AT91_MSR(i) ((enum at91_reg)(0x210 + ((i) * 0x20))) +#define AT91_MDL(i) ((enum at91_reg)(0x214 + ((i) * 0x20))) +#define AT91_MDH(i) ((enum at91_reg)(0x218 + ((i) * 0x20))) +#define AT91_MCR(i) ((enum at91_reg)(0x21C + ((i) * 0x20))) /* Register bits */ #define AT91_MR_CANEN BIT(0) -- 2.8.1