Commit f1395edb authored by Jiaxun Yang's avatar Jiaxun Yang Committed by Darren Hart (VMware)

platform/x86: ideapad-laptop: Use __func__ instead of write_ec_cmd in pr_err

Address the following  checkpatch warning by using __func__ instead:
WARNING: Prefer using '"%s...", __func__' to using 'write_ec_cmd',
this function's name, in a string
Signed-off-by: default avatarJiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: default avatarDarren Hart (VMware) <dvhart@infradead.org>
parent ba3a3387
...@@ -231,7 +231,7 @@ static int write_ec_cmd(acpi_handle handle, int cmd, unsigned long data) ...@@ -231,7 +231,7 @@ static int write_ec_cmd(acpi_handle handle, int cmd, unsigned long data)
if (val == 0) if (val == 0)
return 0; return 0;
} }
pr_err("timeout in write_ec_cmd\n"); pr_err("timeout in %s\n", __func__);
return -1; return -1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment