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)
|
if (!mode)
|
||||||
return PHY_INTERFACE_MODE_NONE;
|
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]))
|
if (!strcmp(mode, phy_interface_strings[i]))
|
||||||
return i;
|
return i;
|
||||||
|
|
||||||
|
@@ -305,7 +305,7 @@ struct {
|
|||||||
u16 syscfg;
|
u16 syscfg;
|
||||||
int cnt;
|
int cnt;
|
||||||
u16 start_rate;
|
u16 start_rate;
|
||||||
} aquantia_syscfg[PHY_INTERFACE_MODE_COUNT] = {
|
} aquantia_syscfg[PHY_INTERFACE_MODE_MAX] = {
|
||||||
[PHY_INTERFACE_MODE_SGMII] = {0x04b, AQUANTIA_VND1_GSYSCFG_1G,
|
[PHY_INTERFACE_MODE_SGMII] = {0x04b, AQUANTIA_VND1_GSYSCFG_1G,
|
||||||
AQUANTIA_VND1_GSTART_RATE_1G},
|
AQUANTIA_VND1_GSTART_RATE_1G},
|
||||||
[PHY_INTERFACE_MODE_2500BASEX] = {0x144, AQUANTIA_VND1_GSYSCFG_2_5G,
|
[PHY_INTERFACE_MODE_2500BASEX] = {0x144, AQUANTIA_VND1_GSYSCFG_2_5G,
|
||||||
|
@@ -41,7 +41,7 @@ typedef enum {
|
|||||||
PHY_INTERFACE_MODE_USXGMII,
|
PHY_INTERFACE_MODE_USXGMII,
|
||||||
PHY_INTERFACE_MODE_NONE, /* Must be last */
|
PHY_INTERFACE_MODE_NONE, /* Must be last */
|
||||||
|
|
||||||
PHY_INTERFACE_MODE_COUNT,
|
PHY_INTERFACE_MODE_MAX,
|
||||||
} phy_interface_t;
|
} phy_interface_t;
|
||||||
|
|
||||||
static const char * const phy_interface_strings[] = {
|
static const char * const phy_interface_strings[] = {
|
||||||
|
Reference in New Issue
Block a user