]> 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)
commit5aa8bd27cae176d5e6054a7656a98bb7589fadf9
tree356ad8023c0b4a18cc7a895267711fdf620472a3
parent3c0c3c5dd696c809827601094e592d1be91dae7c
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