Skip to content

net: phy: fix some coding-style issues

Weihang Li netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 8 repliesApplied 8/8
  2. v18 patches 19 repliesSuperseded

Changes in v2 from the cover letter

- Update commit description of #1 and #3.
- Avoid changing the indentation in #2.
- Change a group of if-else statement into switch from #4 and put it into a single patch.
- Put '|' at the end of line in #5 and #7.
- Avoid deleting spaces in definition of 'settings' in #5.
- Drop #8 from the series which needs more discussion with David.

Patches in v2 All 8 applied

#Subject and filesSizeRepliesApplied
1/8net: phy: change format of some declarationsdrivers/net/phy/bcm87xx.c drivers/net/phy/dp83640.c drivers/net/phy/et1011c.c +2 more+9 -51 replyApplied
2/8net: phy: correct format of block commentsdrivers/net/phy/lxt.c drivers/net/phy/national.c drivers/net/phy/phy-core.c +2 more+16 -91 replyApplied
3/8net: phy: delete repeated words of commentsdrivers/net/phy/phy-c45.c drivers/net/phy/sfp.c+2 -21 replyApplied
4/8net: phy: fix space alignment issuesdrivers/net/phy/davicom.c drivers/net/phy/sfp-bus.c drivers/net/phy/spi_ks8995.c +1 more+25 -251 replyApplied
5/8net: phy: fix formatting issues with bracesdrivers/net/phy/fixed_phy.c drivers/net/phy/phy.c drivers/net/phy/phy_device.c +1 more+9 -121 replyApplied
6/8net: phy: print the function name by __func__ instead of an fixed stringdrivers/net/phy/mdio_device.c+2 -21 replyApplied
7/8net: phy: remove unnecessary line continuationdrivers/net/phy/dp83640.c drivers/net/phy/et1011c.c+6 -61 replyApplied
8/8net: phy: replace if-else statements with switchdrivers/net/phy/marvell.c+9 -41 replyApplied

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchAndrew Lunn
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 net-next 0/8] net: phy: fix some coding-style issues

Make some cleanups according to the coding style of kernel.

Changes since v1:
- Update commit description of #1 and #3.
- Avoid changing the indentation in #2.
- Change a group of if-else statement into switch from #4 and put it into a single patch.
- Put '|' at the end of line in #5 and #7.
- Avoid deleting spaces in definition of 'settings' in #5.
- Drop #8 from the series which needs more discussion with David.

Weihang Li (1):
net: phy: replace if-else statements with switch

Wenpeng Liang (7):
net: phy: change format of some declarations
net: phy: correct format of block comments
net: phy: delete repeated words of comments
net: phy: fix space alignment issues
net: phy: fix formatting issues with braces
net: phy: print the function name by __func__ instead of an fixed
string
net: phy: remove unnecessary line continuation

 drivers/net/phy/bcm87xx.c     |  4 ++--
 drivers/net/phy/davicom.c     |  6 +++---
 drivers/net/phy/dp83640.c     |  5 +++--
 drivers/net/phy/et1011c.c     | 15 ++++++++-------
 drivers/net/phy/fixed_phy.c   |  4 ++--
 drivers/net/phy/lxt.c         |  4 ++--
 drivers/net/phy/marvell.c     | 13 +++++++++----
 drivers/net/phy/mdio_bus.c    |  1 +
 drivers/net/phy/mdio_device.c |  4 ++--
 drivers/net/phy/national.c    |  6 ++++--
 drivers/net/phy/phy-c45.c     |  2 +-
 drivers/net/phy/phy-core.c    |  3 ++-
 drivers/net/phy/phy.c         |  3 +--
 drivers/net/phy/phy_device.c  |  9 ++++-----
 drivers/net/phy/phylink.c     | 14 ++++++++------
 drivers/net/phy/qsemi.c       |  1 +
 drivers/net/phy/sfp-bus.c     | 28 ++++++++++++++--------------
 drivers/net/phy/sfp.c         |  2 +-
 drivers/net/phy/spi_ks8995.c  | 10 +++++-----
 drivers/net/phy/ste10Xp.c     |  6 +++---
 drivers/net/phy/vitesse.c     |  3 ++-
 21 files changed, 78 insertions(+), 65 deletions(-)
Signature · 1 line
2.8.1