Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1699574pxj; Sat, 5 Jun 2021 00:09:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYFaXtxrBA/MTpYWV1Yeu4Y3szpoYVAV4fPyGlRwAcQRjtoYgnnxOcUai/qqT68lQQbIc3 X-Received: by 2002:a17:906:2f91:: with SMTP id w17mr8109259eji.443.1622876975916; Sat, 05 Jun 2021 00:09:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622876975; cv=none; d=google.com; s=arc-20160816; b=LIA1OdkA5bRtDNT0K/x0Y7mIzx5yYxdfVPikVU3JTbao/G2ouee5NoCNJRM803TNiT H7TDvue3KgzT1gHyGH8v8/JJrabx/6mkSn9aPzkipQrVq6wQ8TaJl3e0PRMWn5ltKouT apoAZUcB0XzwuNTZks7njy2PXu8rkxIRqFaSzrIJSAPcRWtkQKIVeAkinIfjkdGjmTlS A6iQVsmaQgap9RqX3gXAaqNXpM11C3QlyHQlExyw0f8PwglTxioWCYOAAMyrpbUpJd4u T+LpbZW+2PLSnwFH8VfFQwo++uEqrO06MgThj6I3jEPNR318BUKu8BuBv+ZpCvwHBWMH R5DQ== 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=jNTo0T7arwzeCbchmTWPubWo/7fcs1vSPCZXCXbjWnY=; b=qF+a/NPCt9eWwgNUP/ncVJap472va0fmSEspi3TUayHJTSdL9+FIXZxVy59ZqiYW9w JzduvIBEz08+BpxIMDOHFfakNYMSSyqQZFjVfuGTwvZYn7pVuJ0pD1zxWHpXK/JL2Mgs FkQ+mqXaYO/+dfV0wJIToqO0ghN5MvebkIMvkXuREWra1OOSdiV7a5aaAE+PWFAB0lMk QDbpI5oy/ZyqGlZKvq244ZDeaERJBuTrBNvSAyCu9jaIwgv8mKDNyLyOB4vWb+Tqw+B5 zvXg/zi64IZcayHaOo54epmGfgTdy0pHNZMjTiOX6Wyj2l+q/CEgE4TP67DlJtmHuiAh sFgg== 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 d2si6929752ejo.619.2021.06.05.00.09.13; Sat, 05 Jun 2021 00:09: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 S230175AbhFEHFd (ORCPT + 99 others); Sat, 5 Jun 2021 03:05:33 -0400 Received: from szxga03-in.huawei.com ([45.249.212.189]:4363 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229996AbhFEHF0 (ORCPT ); Sat, 5 Jun 2021 03:05:26 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4Fxr9K2BP3z68TM; Sat, 5 Jun 2021 14:59:49 +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, 5 Jun 2021 15:03:35 +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, 5 Jun 2021 15:03:34 +0800 From: Guangbin Huang To: , , , , CC: , , , Subject: [PATCH net-next 3/8] net: hd64570: fix the code style issue about "foo* bar" Date: Sat, 5 Jun 2021 15:00:24 +0800 Message-ID: <1622876429-47278-4-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1622876429-47278-1-git-send-email-huangguangbin2@huawei.com> References: <1622876429-47278-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) 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 Fix the checkpatch error as "foo* bar" and should be "foo *bar", and "(foo*)" should be "(foo *)". Signed-off-by: Peng Li Signed-off-by: Guangbin Huang --- drivers/net/wan/hd64570.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/net/wan/hd64570.c b/drivers/net/wan/hd64570.c index cca6101..6237da6 100644 --- a/drivers/net/wan/hd64570.c +++ b/drivers/net/wan/hd64570.c @@ -75,7 +75,7 @@ static inline int sca_intr_status(card_t *card) return result; } -static inline port_t* dev_to_port(struct net_device *dev) +static inline port_t *dev_to_port(struct net_device *dev) { return dev_to_hdlc(dev)->priv; } @@ -211,7 +211,7 @@ static void sca_init_port(port_t *port) static inline void sca_msci_intr(port_t *port) { u16 msci = get_msci(port); - card_t* card = port_to_card(port); + card_t *card = port_to_card(port); u8 stat = sca_in(msci + ST1, card); /* read MSCI ST1 status */ /* Reset MSCI TX underrun and CDCD status bit */ @@ -329,7 +329,7 @@ static inline void sca_tx_intr(port_t *port) { struct net_device *dev = port_to_dev(port); u16 dmac = get_dmac_tx(port); - card_t* card = port_to_card(port); + card_t *card = port_to_card(port); u8 stat; spin_lock(&port->lock); @@ -360,7 +360,7 @@ static inline void sca_tx_intr(port_t *port) spin_unlock(&port->lock); } -static irqreturn_t sca_intr(int irq, void* dev_id) +static irqreturn_t sca_intr(int irq, void *dev_id) { card_t *card = dev_id; int i; @@ -392,7 +392,7 @@ static irqreturn_t sca_intr(int irq, void* dev_id) static void sca_set_port(port_t *port) { - card_t* card = port_to_card(port); + card_t *card = port_to_card(port); u16 msci = get_msci(port); u8 md2 = sca_in(msci + MD2, card); unsigned int tmc, br = 10, brv = 1024; @@ -443,7 +443,7 @@ static void sca_set_port(port_t *port) static void sca_open(struct net_device *dev) { port_t *port = dev_to_port(dev); - card_t* card = port_to_card(port); + card_t *card = port_to_card(port); u16 msci = get_msci(port); u8 md0, md2; @@ -506,7 +506,7 @@ static void sca_open(struct net_device *dev) static void sca_close(struct net_device *dev) { port_t *port = dev_to_port(dev); - card_t* card = port_to_card(port); + card_t *card = port_to_card(port); /* reset channel */ sca_out(CMD_RESET, get_msci(port) + CMD, port_to_card(port)); -- 2.8.1