aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorZhang Xianwei <zhang.xianwei8@zte.com.cn>2018-09-04 15:08:19 +0800
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-09-27 11:45:28 +0300
commit31e56f2305bbc213e9e9f0e21826cceab70d5336 (patch)
treeba53182f1db58932f8aba48b8e76bb1105bab45b /drivers/platform
parentMAINTAINERS: Use my infradead account exclusively for PDx86 work (diff)
downloadlinux-dev-31e56f2305bbc213e9e9f0e21826cceab70d5336.tar.xz
linux-dev-31e56f2305bbc213e9e9f0e21826cceab70d5336.zip
platform/x86: ideapad-laptop: Use __func__ instead of read_ec_cmd in pr_err
Refer to the commit f1395edbcec8 ("platform/x86: ideapad-laptop: Use __func__ instead of write_ec_cmd in pr_err"), prefer using '"%s...", __func__' to using 'read_ec_cmd' in read_ec_data. Signed-off-by: Zhang Xianwei <zhang.xianwei8@zte.com.cn> Acked-by: Ike Panhc <ike.pan@canonical.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform')
-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 d4f1259ff5a2..f856d59361f2 100644
--- a/drivers/platform/x86/ideapad-laptop.c
+++ b/drivers/platform/x86/ideapad-laptop.c
@@ -212,7 +212,7 @@ static int read_ec_data(acpi_handle handle, int cmd, unsigned long *data)
return 0;
}
}
- pr_err("timeout in read_ec_cmd\n");
+ pr_err("timeout in %s\n", __func__);
return -1;
}