Skip to content

Commit 9c84258

Browse files
hjelmelanddavem330
authored andcommitted
net: dsa: lan9303: Rename lan9303_xxx_packet_processing()
The lan9303_enable_packet_processing, lan9303_disable_packet_processing functions operate on port, so the names should reflect that. And to align with lan9303_disable_processing(), rename: lan9303_enable_packet_processing -> lan9303_enable_processing_port lan9303_disable_packet_processing -> lan9303_disable_processing_port Signed-off-by: Egil Hjelmeland <privat@egil-hjelmeland.no> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent b3d14a2 commit 9c84258

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drivers/net/dsa/lan9303-core.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -465,8 +465,8 @@ static int lan9303_detect_phy_setup(struct lan9303 *chip)
465465
return 0;
466466
}
467467

468-
static int lan9303_disable_packet_processing(struct lan9303 *chip,
469-
unsigned int port)
468+
static int lan9303_disable_processing_port(struct lan9303 *chip,
469+
unsigned int port)
470470
{
471471
int ret;
472472

@@ -482,8 +482,8 @@ static int lan9303_disable_packet_processing(struct lan9303 *chip,
482482
LAN9303_MAC_TX_CFG_X_TX_PAD_ENABLE);
483483
}
484484

485-
static int lan9303_enable_packet_processing(struct lan9303 *chip,
486-
unsigned int port)
485+
static int lan9303_enable_processing_port(struct lan9303 *chip,
486+
unsigned int port)
487487
{
488488
int ret;
489489

@@ -563,7 +563,7 @@ static int lan9303_disable_processing(struct lan9303 *chip)
563563
int p;
564564

565565
for (p = 0; p < LAN9303_NUM_PORTS; p++) {
566-
int ret = lan9303_disable_packet_processing(chip, p);
566+
int ret = lan9303_disable_processing_port(chip, p);
567567

568568
if (ret)
569569
return ret;
@@ -639,7 +639,7 @@ static int lan9303_setup(struct dsa_switch *ds)
639639
if (ret)
640640
dev_err(chip->dev, "failed to separate ports %d\n", ret);
641641

642-
ret = lan9303_enable_packet_processing(chip, 0);
642+
ret = lan9303_enable_processing_port(chip, 0);
643643
if (ret)
644644
dev_err(chip->dev, "failed to re-enable switching %d\n", ret);
645645

@@ -763,7 +763,7 @@ static int lan9303_port_enable(struct dsa_switch *ds, int port,
763763
switch (port) {
764764
case 1:
765765
case 2:
766-
return lan9303_enable_packet_processing(chip, port);
766+
return lan9303_enable_processing_port(chip, port);
767767
default:
768768
dev_dbg(chip->dev,
769769
"Error: request to power up invalid port %d\n", port);
@@ -781,7 +781,7 @@ static void lan9303_port_disable(struct dsa_switch *ds, int port,
781781
switch (port) {
782782
case 1:
783783
case 2:
784-
lan9303_disable_packet_processing(chip, port);
784+
lan9303_disable_processing_port(chip, port);
785785
lan9303_phy_write(ds, chip->phy_addr_sel_strap + port,
786786
MII_BMCR, BMCR_PDOWN);
787787
break;

0 commit comments

Comments
 (0)