Skip to contentSkip to conversation

I2C: Fix debug in w83781d driver

PATCH New Jean Delvare 2 participants 2 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 I2C: Fix debug in w83781d driver

Hi Greg,

The trivial patch below fixes two debug prints in the w83781d driver (one needless dereference and one debug print without device info). Please apply.

Thanks.

Signed-off-by Jean Delvare <khali at linux-fr dot org>
drivers/i2c/chips/w83781d.c renamed from drivers/i2c/chips/w83781d.c.orig +2 -3
@@ -815,8 +815,7 @@
 		data->sens[nr - 1] = val;
 		break;
 	default:
-		dev_err(&client->dev,
-		       "Invalid sensor type %ld; must be 1, 2, or %d\n",
+		dev_err(dev, "Invalid sensor type %ld; must be 1, 2, or %d\n",
 		       (long) val, W83781D_DEFAULT_BETA);
 		break;
 	}
@@ -1593,7 +1592,7 @@
 	if (time_after
 	    (jiffies - data->last_updated, (unsigned long) (HZ + HZ / 2))
 	    || time_before(jiffies, data->last_updated) || !data->valid) {
-		pr_debug("Starting device update\n");
+		dev_dbg(dev, "Starting device update\n");
 
 		for (i = 0; i <= 8; i++) {
 			if ((data->type = w83783s || data->type = w83697hf)
Signature · 2 lines
Jean "Khali" Delvare
http://khali.linux-fr.org/
Applied
#1 lore raw

PATCH 1/1 I2C: Fix debug in w83781d driver

Quoted 5 lines · Jean Delvare

Hi Greg,

The trivial patch below fixes two debug prints in the w83781d driver (one needless dereference and one debug print without device info). Please apply.

Applied, thanks.

greg k-h