]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
hwmon: checkpatch cleanup: Replace printk with pr_debug or dev_dbg as appropriate
authorGuenter Roeck <linux@roeck-us.net>
Thu, 10 Jan 2013 13:49:55 +0000 (05:49 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 8 Apr 2013 04:16:38 +0000 (21:16 -0700)
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Alistair John Strachan <alistair@devzero.co.uk>
Cc: Henrik Rydberg <rydberg@euromail.se>
Acked-by: Alistair John Strachan <alistair@devzero.co.uk>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/abituguru.c
drivers/hwmon/abituguru3.c
drivers/hwmon/applesmc.c
drivers/hwmon/f71805f.c

index 6119ff8e8c87597da85afa4eb4edda34c77b4b76..b84f180f210c750cfe14367e1a6e28a6495ae528 100644 (file)
@@ -98,7 +98,7 @@
 #define ABIT_UGURU_NAME                                "abituguru"
 #define ABIT_UGURU_DEBUG(level, format, arg...)                                \
        if (level <= verbose)                                           \
-               printk(KERN_DEBUG ABIT_UGURU_NAME ": "  format , ## arg)
+               pr_debug(format , ## arg)
 /* Macros to help calculate the sysfs_names array length */
 /*
  * sum of strlen of: in??_input\0, in??_{min,max}\0, in??_{min,max}_alarm\0,
index 205327d33c4d5f81a3cef918624b42d1f34f0c92..dcce352e77f6fd16b8e152fa7e7a849397506930 100644 (file)
@@ -78,7 +78,7 @@
 #define ABIT_UGURU3_NAME                       "abituguru3"
 #define ABIT_UGURU3_DEBUG(format, arg...)      \
        if (verbose)                            \
-               printk(KERN_DEBUG ABIT_UGURU3_NAME ": " format , ## arg)
+               pr_debug(format , ## arg)
 
 /* Macros to help calculate the sysfs_names array length */
 #define ABIT_UGURU3_MAX_NO_SENSORS 26
index b41baffa20f0287ecb69de92ffbc66944535048f..62c2e32e25ef6823290380074d50829af30e5751 100644 (file)
@@ -922,7 +922,7 @@ static void applesmc_brightness_set(struct led_classdev *led_cdev,
        ret = queue_work(applesmc_led_wq, &backlight_work);
 
        if (debug && (!ret))
-               printk(KERN_DEBUG "applesmc: work was already on the queue.\n");
+               dev_dbg(led_cdev->dev, "work was already on the queue.\n");
 }
 
 static ssize_t applesmc_key_count_show(struct device *dev,
index a9816979c5dec92f4f0638c6b65f46fe6b801429..0c9f3da242bf91be9a6688f71de6d96385ce8453 100644 (file)
@@ -1350,8 +1350,7 @@ static void f71805f_init_device(struct f71805f_data *data)
 
        reg = f71805f_read8(data, F71805F_REG_START);
        if ((reg & 0x41) != 0x01) {
-               printk(KERN_DEBUG DRVNAME ": Starting monitoring "
-                      "operations\n");
+               pr_debug("Starting monitoring operations\n");
                f71805f_write8(data, F71805F_REG_START, (reg | 0x01) & ~0x40);
        }