Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: phy: correct format of block comments

Block comments should not use a trailing */ on a separate line and every
line of a block comment should start with an '*'.

Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Weihang Li <liweihang@huawei.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Wenpeng Liang and committed by
David S. Miller
1953feb0 775f2547

+16 -9
+2 -2
drivers/net/phy/lxt.c
··· 242 242 return lpa; 243 243 244 244 /* If both registers are equal, it is suspect but not 245 - * impossible, hence a new try 246 - */ 245 + * impossible, hence a new try 246 + */ 247 247 } while (lpa == adv && retry--); 248 248 249 249 mii_lpa_to_linkmode_lpa_t(phydev->lp_advertising, lpa);
+4 -2
drivers/net/phy/national.c
··· 68 68 return ret; 69 69 70 70 /* Clear the interrupt status bit by writing a “1” 71 - * to the corresponding bit in INT_CLEAR (2:0 are reserved) */ 71 + * to the corresponding bit in INT_CLEAR (2:0 are reserved) 72 + */ 72 73 ret = phy_write(phydev, DP83865_INT_CLEAR, ret & ~0x7); 73 74 74 75 return ret; ··· 151 150 { 152 151 ns_giga_speed_fallback(phydev, ALL_FALLBACK_ON); 153 152 /* In the latest MAC or switches design, the 10 Mbps loopback 154 - is desired to be turned off. */ 153 + * is desired to be turned off. 154 + */ 155 155 ns_10_base_t_hdx_loopack(phydev, hdx_loopback_off); 156 156 return ns_ack_interrupt(phydev); 157 157 }
+2 -1
drivers/net/phy/phy-core.c
··· 76 76 77 77 /* A mapping of all SUPPORTED settings to speed/duplex. This table 78 78 * must be grouped by speed and sorted in descending match priority 79 - * - iow, descending speed. */ 79 + * - iow, descending speed. 80 + */ 80 81 81 82 #define PHY_SETTING(s, d, b) { .speed = SPEED_ ## s, .duplex = DUPLEX_ ## d, \ 82 83 .bit = ETHTOOL_LINK_MODE_ ## b ## _BIT}
+6 -3
drivers/net/phy/phylink.c
··· 182 182 pl->link_config.duplex = DUPLEX_FULL; 183 183 184 184 /* We treat the "pause" and "asym-pause" terminology as 185 - * defining the link partner's ability. */ 185 + * defining the link partner's ability. 186 + */ 186 187 if (fwnode_property_read_bool(fixed_node, "pause")) 187 188 __set_bit(ETHTOOL_LINK_MODE_Pause_BIT, 188 189 pl->link_config.lp_advertising); ··· 686 685 phylink_mac_pcs_get_state(pl, &link_state); 687 686 688 687 /* If we have a phy, the "up" state is the union of 689 - * both the PHY and the MAC */ 688 + * both the PHY and the MAC 689 + */ 690 690 if (pl->phydev) 691 691 link_state.link &= pl->phy_state.link; 692 692 ··· 696 694 link_state.interface = pl->phy_state.interface; 697 695 698 696 /* If we have a PHY, we need to update with 699 - * the PHY flow control bits. */ 697 + * the PHY flow control bits. 698 + */ 700 699 link_state.pause = pl->phy_state.pause; 701 700 mac_config = true; 702 701 }
+2 -1
drivers/net/phy/vitesse.c
··· 249 249 250 250 /* This adds a skew for both TX and RX clocks, so the skew should only be 251 251 * applied to "rgmii-id" interfaces. It may not work as expected 252 - * on "rgmii-txid", "rgmii-rxid" or "rgmii" interfaces. */ 252 + * on "rgmii-txid", "rgmii-rxid" or "rgmii" interfaces. 253 + */ 253 254 static int vsc8601_add_skew(struct phy_device *phydev) 254 255 { 255 256 int ret;