net: phy: Fix ethernet-phy-id <dot> in the code
authorMichal Simek <michal.simek@amd.com>
Tue, 1 Nov 2022 00:08:44 +0000 (17:08 -0700)
committerMichal Simek <michal.simek@amd.com>
Tue, 22 Nov 2022 14:02:07 +0000 (15:02 +0100)
Use dot instead of comma. The fix doesn't affect anything but it is good to
be aligned with used pattern. The first is used only for string size
calculation and the second change is in the comment.

Fixes: db681d4929ca ("net: phy: Add new read ethernet phy id function")
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/core/ofnode.c

index 14bbfe7..4d56b1a 100644 (file)
@@ -1197,12 +1197,12 @@ int ofnode_read_eth_phy_id(ofnode node, u16 *vendor, u16 *device)
        while (list < end) {
                len = strlen(list);
 
-               if (len >= strlen("ethernet-phy-idVVVV,DDDD")) {
+               if (len >= strlen("ethernet-phy-idVVVV.DDDD")) {
                        char *s = strstr(list, "ethernet-phy-id");
 
                        /*
                         * check if the string is something like
-                        * ethernet-phy-idVVVV,DDDD
+                        * ethernet-phy-idVVVV.DDDD
                         */
                        if (s && s[19] == '.') {
                                s += strlen("ethernet-phy-id");