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

doc: sfp-phylink: correct code indentation

Using vim to edit the phylink documentation reveals some mistakes due
to the "invisible" pythonesque white space indentation that can't be
seen with other editors. Fix it.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Russell King and committed by
David S. Miller
c04d102b 630fe59e

+16 -16
+16 -16
Documentation/networking/sfp-phylink.rst
··· 138 138 139 139 .. code-block:: c 140 140 141 - static int foo_ethtool_set_link_ksettings(struct net_device *dev, 142 - const struct ethtool_link_ksettings *cmd) 143 - { 144 - struct foo_priv *priv = netdev_priv(dev); 141 + static int foo_ethtool_set_link_ksettings(struct net_device *dev, 142 + const struct ethtool_link_ksettings *cmd) 143 + { 144 + struct foo_priv *priv = netdev_priv(dev); 145 + 146 + return phylink_ethtool_ksettings_set(priv->phylink, cmd); 147 + } 145 148 146 - return phylink_ethtool_ksettings_set(priv->phylink, cmd); 147 - } 149 + static int foo_ethtool_get_link_ksettings(struct net_device *dev, 150 + struct ethtool_link_ksettings *cmd) 151 + { 152 + struct foo_priv *priv = netdev_priv(dev); 153 + 154 + return phylink_ethtool_ksettings_get(priv->phylink, cmd); 155 + } 148 156 149 - static int foo_ethtool_get_link_ksettings(struct net_device *dev, 150 - struct ethtool_link_ksettings *cmd) 151 - { 152 - struct foo_priv *priv = netdev_priv(dev); 153 - 154 - return phylink_ethtool_ksettings_get(priv->phylink, cmd); 155 - } 156 - 157 - 7. Replace the call to: 157 + 7. Replace the call to:: 158 158 159 159 phy_dev = of_phy_connect(dev, node, link_func, flags, phy_interface); 160 160 161 - and associated code with a call to: 161 + and associated code with a call to:: 162 162 163 163 err = phylink_of_phy_connect(priv->phylink, node, flags); 164 164