Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

phy: Use macros instead of hardcoded values in marvell phy driver

Use macros from linux/marvell_phy.h instead of duplicate
magic phy ID in the driver.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Michal Simek and committed by
David S. Miller
f5e1cabf 5a1cebd8

+9 -9
+9 -9
drivers/net/phy/marvell.c
··· 958 958 module_exit(marvell_exit); 959 959 960 960 static struct mdio_device_id __maybe_unused marvell_tbl[] = { 961 - { 0x01410c60, 0xfffffff0 }, 962 - { 0x01410c90, 0xfffffff0 }, 963 - { 0x01410cc0, 0xfffffff0 }, 964 - { 0x01410e10, 0xfffffff0 }, 965 - { 0x01410cb0, 0xfffffff0 }, 966 - { 0x01410cd0, 0xfffffff0 }, 967 - { 0x01410e50, 0xfffffff0 }, 968 - { 0x01410e30, 0xfffffff0 }, 969 - { 0x01410e90, 0xfffffff0 }, 961 + { MARVELL_PHY_ID_88E1101, MARVELL_PHY_ID_MASK }, 962 + { MARVELL_PHY_ID_88E1112, MARVELL_PHY_ID_MASK }, 963 + { MARVELL_PHY_ID_88E1111, MARVELL_PHY_ID_MASK }, 964 + { MARVELL_PHY_ID_88E1118, MARVELL_PHY_ID_MASK }, 965 + { MARVELL_PHY_ID_88E1121R, MARVELL_PHY_ID_MASK }, 966 + { MARVELL_PHY_ID_88E1145, MARVELL_PHY_ID_MASK }, 967 + { MARVELL_PHY_ID_88E1149R, MARVELL_PHY_ID_MASK }, 968 + { MARVELL_PHY_ID_88E1240, MARVELL_PHY_ID_MASK }, 969 + { MARVELL_PHY_ID_88E1318S, MARVELL_PHY_ID_MASK }, 970 970 { } 971 971 }; 972 972