summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJiaxun Yang <jiaxun.yang@flygoat.com>2017-12-02 21:45:32 +0800
committerDarren Hart (VMware) <dvhart@infradead.org>2017-12-11 16:31:05 -0800
commitf1395edbcec81dafa1c5fff3ef9c0ab04c6fe78d (patch)
treef09869566fa38e7de777f08f5f8216533fcb1d23 /drivers
parentba3a33876e92e000d7aa37eaf6581a7333c58560 (diff)
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: Jiaxun Yang <jiaxun.yang@flygoat.com> Signed-off-by: Darren Hart (VMware) <dvhart@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/platform/x86/ideapad-laptop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c
index 9f2a4bc58df0..37a88938bbaa 100644
--- a/drivers/platform/x86/ideapad-laptop.c
+++ b/drivers/platform/x86/ideapad-laptop.c
@@ -231,7 +231,7 @@ static int write_ec_cmd(acpi_handle handle, int cmd, unsigned long data)
if (val == 0)
return 0;
}
- pr_err("timeout in write_ec_cmd\n");
+ pr_err("timeout in %s\n", __func__);
return -1;
}