net: phy: Add phy_sysfs_create_links helper function
authorVladimir Oltean <olteanv@gmail.com>
Tue, 28 May 2019 17:38:07 +0000 (20:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 04:48:53 +0000 (21:48 -0700)
commit53cfca2d6b934b456f89ce2ecfdf0b08593384f1
tree8322114285622082df2c16e4d3c9a8ad1c524748
parent24ec483cec981618f8a4782a36d1e3f319d42cad
net: phy: Add phy_sysfs_create_links helper function

This is a cosmetic patch that wraps the operation of creating sysfs
links between the netdev->phydev and the phydev->attached_dev.

This is needed to keep the indentation level in check in a follow-up
patch where this function will be guarded against the existence of a
phydev->attached_dev.

Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy_device.c