net: phy: marvell: refactor HWMON OOP style

Use a structure of Marvell PHY specific HWMON methods to reduce code
duplication. Store a pointer to this structure into the PHY driver's
driver_data member.

Signed-off-by: Marek Behún <kabel@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Marek Behún
2021-04-20 09:53:59 +02:00
committed by David S. Miller
parent 56e2e5de44
commit 41d26bf4ab
+127 -246
View File
File diff suppressed because it is too large Load Diff