staging: comedi: coding style fixes found by checkpatch.pl
authorSimo Koskinen <koskisoft@gmail.com>
Mon, 28 Aug 2017 13:01:32 +0000 (15:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Aug 2017 06:25:41 +0000 (08:25 +0200)
The patch removes "WARNING: Prefer using '"%s...", __func__'
to using 'xxxxxxxx', this function's name, in a string" warnings
reported by checkpatch.pl script.

Signed-off-by: Simo Koskinen <koskisoft@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers.c

index a5bf2cc..0b43db6 100644 (file)
@@ -995,12 +995,12 @@ int comedi_auto_config(struct device *hardware_device,
        int ret;
 
        if (!hardware_device) {
-               pr_warn("BUG! comedi_auto_config called with NULL hardware_device\n");
+               pr_warn("BUG! %s called with NULL hardware_device\n", __func__);
                return -EINVAL;
        }
        if (!driver) {
                dev_warn(hardware_device,
-                        "BUG! comedi_auto_config called with NULL comedi driver\n");
+                        "BUG! %s called with NULL comedi driver\n", __func__);
                return -EINVAL;
        }