Commit c04d102b authored by Russell King's avatar Russell King Committed by David S. Miller

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: default avatarRussell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 630fe59e
...@@ -138,27 +138,27 @@ this documentation. ...@@ -138,27 +138,27 @@ this documentation.
.. code-block:: c .. code-block:: c
static int foo_ethtool_set_link_ksettings(struct net_device *dev, static int foo_ethtool_set_link_ksettings(struct net_device *dev,
const struct ethtool_link_ksettings *cmd) const struct ethtool_link_ksettings *cmd)
{ {
struct foo_priv *priv = netdev_priv(dev); struct foo_priv *priv = netdev_priv(dev);
return phylink_ethtool_ksettings_set(priv->phylink, cmd); return phylink_ethtool_ksettings_set(priv->phylink, cmd);
} }
static int foo_ethtool_get_link_ksettings(struct net_device *dev,
struct ethtool_link_ksettings *cmd)
{
struct foo_priv *priv = netdev_priv(dev);
return phylink_ethtool_ksettings_get(priv->phylink, cmd); static int foo_ethtool_get_link_ksettings(struct net_device *dev,
} struct ethtool_link_ksettings *cmd)
{
struct foo_priv *priv = netdev_priv(dev);
return phylink_ethtool_ksettings_get(priv->phylink, cmd);
}
7. Replace the call to: 7. Replace the call to::
phy_dev = of_phy_connect(dev, node, link_func, flags, phy_interface); phy_dev = of_phy_connect(dev, node, link_func, flags, phy_interface);
and associated code with a call to: and associated code with a call to::
err = phylink_of_phy_connect(priv->phylink, node, flags); err = phylink_of_phy_connect(priv->phylink, node, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment