diff options
author | Marek BehĂșn | 2022-04-07 00:32:55 +0200 |
---|---|---|
committer | Ramon Fried | 2022-04-10 08:44:12 +0300 |
commit | 6fb4482ea26e73e49ef7b77e74c81d54785d4619 (patch) | |
tree | 6cc1d23b097f38dcdb8ca78d0fda4c35bfed00b2 | |
parent | e2b6cf5cadc0b71f4addbe0019f7da0c8578c194 (diff) |
net: mdio-uclass: fix type for phy_mode_str and phy_handle_str
These global variables should both have type
static const char * const
Signed-off-by: Marek BehĂșn <marek.behun@nic.cz>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
-rw-r--r-- | net/mdio-uclass.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/net/mdio-uclass.c b/net/mdio-uclass.c index e74e34f78f9..5735afe49e1 100644 --- a/net/mdio-uclass.c +++ b/net/mdio-uclass.c @@ -17,13 +17,14 @@ /* DT node properties for MAC-PHY interface */ #define PHY_MODE_STR_CNT 2 -static const char *phy_mode_str[PHY_MODE_STR_CNT] = { "phy-mode", - "phy-connection-type" }; +static const char * const phy_mode_str[PHY_MODE_STR_CNT] = { + "phy-mode", "phy-connection-type" +}; /* DT node properties that reference a PHY node */ #define PHY_HANDLE_STR_CNT 3 -const char *phy_handle_str[PHY_HANDLE_STR_CNT] = { "phy-handle", - "phy", - "phy-device" }; +static const char * const phy_handle_str[PHY_HANDLE_STR_CNT] = { + "phy-handle", "phy", "phy-device" +}; void dm_mdio_probe_devices(void) { |