aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMarek BehĂșn2022-04-07 00:33:02 +0200
committerRamon Fried2022-04-10 08:44:13 +0300
commit6706d7dcbee15ac41f3ddb50b31ff96d16567883 (patch)
tree9a0b427e4e7f60972e08e1522f2a6e7c5ef9eccf /drivers
parent123ca114e07ecf28aa2538748d733e2b22d8b8b5 (diff)
treewide: Rename PHY_INTERFACE_MODE_COUNT to PHY_INTERFACE_MODE_MAX
Rename constant PHY_INTERFACE_MODE_COUNT to PHY_INTERFACE_MODE_MAX to make it compatible with Linux' naming. Signed-off-by: Marek BehĂșn <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/core/ofnode.c2
-rw-r--r--drivers/net/phy/aquantia.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c
index f644a593d32..d9ccb1bad26 100644
--- a/drivers/core/ofnode.c
+++ b/drivers/core/ofnode.c
@@ -1234,7 +1234,7 @@ phy_interface_t ofnode_read_phy_mode(ofnode node)
if (!mode)
return PHY_INTERFACE_MODE_NONE;
- for (i = 0; i < PHY_INTERFACE_MODE_COUNT; i++)
+ for (i = 0; i < PHY_INTERFACE_MODE_MAX; i++)
if (!strcmp(mode, phy_interface_strings[i]))
return i;
diff --git a/drivers/net/phy/aquantia.c b/drivers/net/phy/aquantia.c
index 83075f78c98..7e950fe0c2f 100644
--- a/drivers/net/phy/aquantia.c
+++ b/drivers/net/phy/aquantia.c
@@ -305,7 +305,7 @@ struct {
u16 syscfg;
int cnt;
u16 start_rate;
-} aquantia_syscfg[PHY_INTERFACE_MODE_COUNT] = {
+} aquantia_syscfg[PHY_INTERFACE_MODE_MAX] = {
[PHY_INTERFACE_MODE_SGMII] = {0x04b, AQUANTIA_VND1_GSYSCFG_1G,
AQUANTIA_VND1_GSTART_RATE_1G},
[PHY_INTERFACE_MODE_2500BASEX] = {0x144, AQUANTIA_VND1_GSYSCFG_2_5G,