diff options
author | Tim Harvey <tharvey@gateworks.com> | 2022-05-10 15:49:10 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-05-23 13:52:02 -0400 |
commit | faa6ce6061a03617785310ccbc5436a56cce4ab4 (patch) | |
tree | fba72973e7f91d3375c42c5e854dc0c90cf1583f /include/phy_interface.h | |
parent | c1abf7659c9b29874d9d718df6890de1638cedba (diff) | |
download | u-boot-faa6ce6061a03617785310ccbc5436a56cce4ab4.tar.gz |
net: fix phy_string_for_interface
commit ffb0f6f488b9 ("treewide: Rename PHY_INTERFACE_MODE_NONE to
PHY_INTERFACE_MODE_NA") broke the phy_string_for_interface function.
Fix it.
Fixes ffb0f6f488b9 ("treewide: Rename PHY_INTERFACE_MODE_NONE to PHY_INTERFACE_MODE_NA")
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Cc: Marek BehĂșn <marek.behun@nic.cz>
Cc: Stefan Roese <sr@denx.de>
Cc: Ramon Fried <rfried.dev@gmail.com>
Cc: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Stefan Roese <sr@denx.de>
Reviewed-by: Marek BehĂșn <marek.behun@nic.cz>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Diffstat (limited to 'include/phy_interface.h')
-rw-r--r-- | include/phy_interface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/phy_interface.h b/include/phy_interface.h index ce3b5004ec2..fed3357b9a2 100644 --- a/include/phy_interface.h +++ b/include/phy_interface.h @@ -85,7 +85,7 @@ static const char * const backplane_mode_strings[] = { static inline const char *phy_string_for_interface(phy_interface_t i) { /* Default to unknown */ - if (i > PHY_INTERFACE_MODE_NA) + if (i >= PHY_INTERFACE_MODE_MAX) i = PHY_INTERFACE_MODE_NA; return phy_interface_strings[i]; |