OSDN Git Service

net: phy: add generic ndo_do_ioctl handler phy_do_ioctl
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 19 Jan 2020 13:31:55 +0000 (14:31 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jan 2020 09:43:24 +0000 (10:43 +0100)
commit2ab1d925aa4c0c179dd1eb492e8c03536972707b
tree97ab900ed31d71bc7cfe1a194f19a31d0a7c3de9
parent4262c38dc42e092987f41cb1695240ac7dab86a9
net: phy: add generic ndo_do_ioctl handler phy_do_ioctl

A number of network drivers has the same glue code to use phy_mii_ioctl
as ndo_do_ioctl handler. So let's add such a generic ndo_do_ioctl
handler to phylib.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c
include/linux/phy.h