platform/x86: asus-laptop: Use pr_warn instead of pr_warning
authorKefeng Wang <wangkefeng.wang@huawei.com>
Fri, 18 Oct 2019 03:18:36 +0000 (11:18 +0800)
committerPetr Mladek <pmladek@suse.com>
Fri, 18 Oct 2019 13:01:16 +0000 (15:01 +0200)
As said in commit f2c2cbcc35d4 ("powerpc: Use pr_warn instead of
pr_warning"), removing pr_warning so all logging messages use a
consistent <prefix>_warn style. Let's do it.

Link: http://lkml.kernel.org/r/20191018031850.48498-19-wangkefeng.wang@huawei.com
To: linux-kernel@vger.kernel.org
Cc: Corentin Chary <corentin.chary@gmail.com>
Cc: Darren Hart <dvhart@infradead.org>
Cc: Andy Shevchenko <andy@infradead.org>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
drivers/platform/x86/asus-laptop.c

index 472af7e..ca65e10 100644 (file)
@@ -1148,7 +1148,7 @@ static void asus_als_switch(struct asus_laptop *asus, int value)
                ret = write_acpi_int(asus->handle, METHOD_ALS_CONTROL, value);
        }
        if (ret)
-               pr_warning("Error setting light sensor switch\n");
+               pr_warn("Error setting light sensor switch\n");
 
        asus->light_switch = value;
 }