Skip to content

Commit

Permalink
hwmon: checkpatch cleanup: Replace printk with pr_debug or dev_dbg as…
Browse files Browse the repository at this point in the history
… appropriate

Cc: Hans de Goede <[email protected]>
Cc: Alistair John Strachan <[email protected]>
Cc: Henrik Rydberg <[email protected]>
Acked-by: Alistair John Strachan <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
  • Loading branch information
groeck committed Apr 8, 2013
1 parent 9e8269d commit 692fe50
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion drivers/hwmon/abituguru.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/abituguru3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/applesmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 1 addition & 2 deletions drivers/hwmon/f71805f.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 692fe50

Please sign in to comment.