* [PATCH 2.6] I2C: Fix debug in w83781d driver
@ 2005-05-19 6:25 Jean Delvare
2005-05-19 6:25 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Jean Delvare @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
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>
--- linux-2.6.8-rc2/drivers/i2c/chips/w83781d.c.orig 2004-07-31 21:22:51.000000000 +0200
+++ linux-2.6.8-rc2/drivers/i2c/chips/w83781d.c 2004-07-31 22:03:04.000000000 +0200
@@ -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)
--
Jean "Khali" Delvare
http://khali.linux-fr.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 2.6] I2C: Fix debug in w83781d driver
2005-05-19 6:25 [PATCH 2.6] I2C: Fix debug in w83781d driver Jean Delvare
@ 2005-05-19 6:25 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2005-05-19 6:25 UTC (permalink / raw)
To: lm-sensors
On Sat, Jul 31, 2004 at 10:09:47PM +0200, Jean Delvare wrote:
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-05-19 6:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-19 6:25 [PATCH 2.6] I2C: Fix debug in w83781d driver Jean Delvare
2005-05-19 6:25 ` Greg KH
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.