From: Marek BehĂșn Date: Wed, 6 Apr 2022 22:32:55 +0000 (+0200) Subject: net: mdio-uclass: fix type for phy_mode_str and phy_handle_str X-Git-Tag: v2025.01-rc5-pxa1908~1454^2~37 X-Git-Url: http://git.dujemihanovic.xyz/img/static/%7B%7B%20%28.OutputFormats.Get?a=commitdiff_plain;h=6fb4482ea26e73e49ef7b77e74c81d54785d4619;p=u-boot.git 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 Reviewed-by: Ramon Fried Reviewed-by: Vladimir Oltean --- diff --git a/net/mdio-uclass.c b/net/mdio-uclass.c index e74e34f78f..5735afe49e 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) {