aboutsummaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMichal Simek <michal.simek@amd.com>2022-10-31 17:08:44 -0700
committerMichal Simek <michal.simek@amd.com>2022-11-22 15:02:07 +0100
commit2e9946aba8e770a626ea5b9a23c95981569d6e61 (patch)
treefbc70d089849e071df1cf08ada08201e0568a2aa /drivers
parent96dcde487e7ece6de437a55175f9a5ec5c4ecd59 (diff)
downloadu-boot-2e9946aba8e770a626ea5b9a23c95981569d6e61.zip
u-boot-2e9946aba8e770a626ea5b9a23c95981569d6e61.tar.gz
u-boot-2e9946aba8e770a626ea5b9a23c95981569d6e61.tar.bz2
net: phy: Fix ethernet-phy-id <dot> in the code
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/core/ofnode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/core/ofnode.c b/drivers/core/ofnode.c
index 14bbfe7..4d56b1a 100644
--- a/drivers/core/ofnode.c
+++ b/drivers/core/ofnode.c
@@ -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");