platform/x86: ideapad-laptop: Use __func__ instead of write_ec_cmd in pr_err
authorJiaxun Yang <jiaxun.yang@flygoat.com>
Sat, 2 Dec 2017 13:45:32 +0000 (21:45 +0800)
committerDarren Hart (VMware) <dvhart@infradead.org>
Tue, 12 Dec 2017 00:31:05 +0000 (16:31 -0800)
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>
drivers/platform/x86/ideapad-laptop.c

index 9f2a4bc58df0dca31936864b681960496f259a40..37a88938bbaaef25602188cb8b8df9f18aabba70 100644 (file)
@@ -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;
 }