]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: Add helper function to obtain PHY device of a given port
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 25 Apr 2018 19:12:51 +0000 (12:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 27 Apr 2018 15:53:03 +0000 (11:53 -0400)
commite67a005eb3ecfa19e732b9c751f9757fcd0c76f9
tree356ad8023c0b4a18cc7a895267711fdf620472a3
parente6f9b865874cc76ef1b1cb83b9d6ff96c042d56d
net: dsa: Add helper function to obtain PHY device of a given port

In preparation for having more call sites attempting to obtain a
reference against a PHY device corresponding to a particular port,
introduce a helper function for that purpose.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/port.c