]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: mdio-uclass: fix type for phy_mode_str and phy_handle_str
authorMarek Behún <marek.behun@nic.cz>
Wed, 6 Apr 2022 22:32:55 +0000 (00:32 +0200)
committerRamon Fried <ramon@neureality.ai>
Sun, 10 Apr 2022 05:44:12 +0000 (08:44 +0300)
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>
net/mdio-uclass.c

index e74e34f78f9cd1d689e2df0fc013ec57fa0ea055..5735afe49e1025c5747cb475d37422bfc1b4dc73 100644 (file)
 
 /* 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)
 {