mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-15 15:51:31 +01:00
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>
This commit is contained in:
parent
c1abf7659c
commit
faa6ce6061
@ -85,7 +85,7 @@ static const char * const backplane_mode_strings[] = {
|
|||||||
static inline const char *phy_string_for_interface(phy_interface_t i)
|
static inline const char *phy_string_for_interface(phy_interface_t i)
|
||||||
{
|
{
|
||||||
/* Default to unknown */
|
/* Default to unknown */
|
||||||
if (i > PHY_INTERFACE_MODE_NA)
|
if (i >= PHY_INTERFACE_MODE_MAX)
|
||||||
i = PHY_INTERFACE_MODE_NA;
|
i = PHY_INTERFACE_MODE_NA;
|
||||||
|
|
||||||
return phy_interface_strings[i];
|
return phy_interface_strings[i];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user