r8169: decouple rtl_phy_write_fw from actual driver code
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 29 May 2019 19:15:06 +0000 (21:15 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 21:39:25 +0000 (14:39 -0700)
commitce8843abfa674350bf0f4f1b88d8e50a59401a46
tree7c43c8864d48bf08cfe8320b1a3040642381e7af
parente95a7f30e1261f03487b15a8bd55bb812ceaa18b
r8169: decouple rtl_phy_write_fw from actual driver code

This patch is a further step towards decoupling firmware handling from
the actual driver code. Firmware can be for PHY and/or MAC, and two
pairs of read/write functions are needed for handling PHY firmware and
MAC firmware respectively. Pass these functions via struct rtl_fw and
avoid the ugly switching of mdio_ops behind the back of rtl_writephy().

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c