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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user