All of lore.kernel.org
 help / color / mirror / Atom feed
From: Weihang Li <liweihang@huawei.com>
To: <davem@davemloft.net>, <kuba@kernel.org>, <andrew@lunn.ch>,
	<hkallweit1@gmail.com>
Cc: <netdev@vger.kernel.org>, <linuxarm@huawei.com>,
	Wenpeng Liang <liangwenpeng@huawei.com>,
	Weihang Li <liweihang@huawei.com>
Subject: [PATCH v2 net-next 7/8] net: phy: remove unnecessary line continuation
Date: Wed, 16 Jun 2021 18:01:25 +0800	[thread overview]
Message-ID: <1623837686-22569-8-git-send-email-liweihang@huawei.com> (raw)
In-Reply-To: <1623837686-22569-1-git-send-email-liweihang@huawei.com>

From: Wenpeng Liang <liangwenpeng@huawei.com>

Avoid unnecessary line continuations, and put '|' at the end of line.

Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
---
 drivers/net/phy/dp83640.c | 4 ++--
 drivers/net/phy/et1011c.c | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/net/phy/dp83640.c b/drivers/net/phy/dp83640.c
index 10769bf..705c166 100644
--- a/drivers/net/phy/dp83640.c
+++ b/drivers/net/phy/dp83640.c
@@ -170,9 +170,9 @@ static ushort gpio_tab[GPIO_TABLE_SIZE] = {
 module_param(chosen_phy, int, 0444);
 module_param_array(gpio_tab, ushort, NULL, 0444);
 
-MODULE_PARM_DESC(chosen_phy, \
+MODULE_PARM_DESC(chosen_phy,
 	"The address of the PHY to use for the ancillary clock features");
-MODULE_PARM_DESC(gpio_tab, \
+MODULE_PARM_DESC(gpio_tab,
 	"Which GPIO line to use for which purpose: cal,perout,extts1,...,extts6");
 
 static void dp83640_gpio_defaults(struct ptp_pin_desc *pd)
diff --git a/drivers/net/phy/et1011c.c b/drivers/net/phy/et1011c.c
index 07bb484..be1b71d 100644
--- a/drivers/net/phy/et1011c.c
+++ b/drivers/net/phy/et1011c.c
@@ -73,10 +73,10 @@ static int et1011c_read_status(struct phy_device *phydev)
 					ET1011C_GIGABIT_SPEED) {
 			val = phy_read(phydev, ET1011C_CONFIG_REG);
 			val &= ~ET1011C_TX_FIFO_MASK;
-			phy_write(phydev, ET1011C_CONFIG_REG, val\
-					| ET1011C_GMII_INTERFACE\
-					| ET1011C_SYS_CLK_EN\
-					| ET1011C_TX_FIFO_DEPTH_16);
+			phy_write(phydev, ET1011C_CONFIG_REG, val |
+					  ET1011C_GMII_INTERFACE |
+					  ET1011C_SYS_CLK_EN |
+					  ET1011C_TX_FIFO_DEPTH_16);
 
 		}
 	}
-- 
2.8.1


  parent reply	other threads:[~2021-06-16 10:05 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-16 10:01 [PATCH v2 net-next 0/8] net: phy: fix some coding-style issues Weihang Li
2021-06-16 10:01 ` [PATCH v2 net-next 1/8] net: phy: change format of some declarations Weihang Li
2021-06-16 15:55   ` Andrew Lunn
2021-06-16 10:01 ` [PATCH v2 net-next 2/8] net: phy: correct format of block comments Weihang Li
2021-06-16 15:56   ` Andrew Lunn
2021-06-16 10:01 ` [PATCH v2 net-next 3/8] net: phy: delete repeated words of comments Weihang Li
2021-06-16 15:56   ` Andrew Lunn
2021-06-16 10:01 ` [PATCH v2 net-next 4/8] net: phy: fix space alignment issues Weihang Li
2021-06-16 16:07   ` Andrew Lunn
2021-06-16 10:01 ` [PATCH v2 net-next 5/8] net: phy: fix formatting issues with braces Weihang Li
2021-06-16 16:08   ` Andrew Lunn
2021-06-16 10:01 ` [PATCH v2 net-next 6/8] net: phy: print the function name by __func__ instead of an fixed string Weihang Li
2021-06-16 16:08   ` Andrew Lunn
2021-06-16 10:01 ` Weihang Li [this message]
2021-06-16 16:09   ` [PATCH v2 net-next 7/8] net: phy: remove unnecessary line continuation Andrew Lunn
2021-06-16 10:01 ` [PATCH v2 net-next 8/8] net: phy: replace if-else statements with switch Weihang Li
2021-06-16 16:09   ` Andrew Lunn
2021-06-16 19:40 ` [PATCH v2 net-next 0/8] net: phy: fix some coding-style issues patchwork-bot+netdevbpf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1623837686-22569-8-git-send-email-liweihang@huawei.com \
    --to=liweihang@huawei.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=hkallweit1@gmail.com \
    --cc=kuba@kernel.org \
    --cc=liangwenpeng@huawei.com \
    --cc=linuxarm@huawei.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.