1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-11-01 19:05:51 +01:00

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>
This commit is contained in:
Marek Behún
2022-04-07 00:33:02 +02:00
committed by Ramon Fried
parent 123ca114e0
commit 6706d7dcbe
3 changed files with 3 additions and 3 deletions

View File

@@ -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;