提交 f1395edb 编写于 作者: J Jiaxun Yang 提交者: 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: NJiaxun Yang <jiaxun.yang@flygoat.com>
Signed-off-by: NDarren Hart (VMware) <dvhart@infradead.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册