Re: [PATCH] i2c driver changes for 2.5.65

Greg KH (greg@kroah.com)
Thu, 20 Mar 2003 14:32 -0800


ChangeSet 1.1143.1.13, 2003/03/20 11:16:19-08:00, greg@kroah.com

[PATCH] i2c i2c-amd8111.c: change a few printk() to dev_warn()

drivers/i2c/busses/i2c-amd8111.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)

diff -Nru a/drivers/i2c/busses/i2c-amd8111.c b/drivers/i2c/busses/i2c-amd8111.c
--- a/drivers/i2c/busses/i2c-amd8111.c Thu Mar 20 12:53:50 2003
+++ b/drivers/i2c/busses/i2c-amd8111.c Thu Mar 20 12:53:50 2003
@@ -74,7 +74,7 @@
udelay(1);

if (!timeout) {
- printk(KERN_WARNING "i2c-amd8111.c: Timeout while waiting for IBF to clear\n");
+ dev_warn(&smbus->dev->dev, "Timeout while waiting for IBF to clear\n");
return -1;
}

@@ -89,7 +89,7 @@
udelay(1);

if (!timeout) {
- printk(KERN_WARNING "i2c-amd8111.c: Timeout while waiting for OBF to set\n");
+ dev_warn(&smbus->dev->dev, "Timeout while waiting for OBF to set\n");
return -1;
}

@@ -256,11 +256,11 @@
case I2C_SMBUS_BLOCK_DATA_PEC:
case I2C_SMBUS_PROC_CALL_PEC:
case I2C_SMBUS_BLOCK_PROC_CALL_PEC:
- printk(KERN_WARNING "i2c-amd8111.c: Unexpected software PEC transaction %d\n.", size);
+ dev_warn(&adap->dev, "Unexpected software PEC transaction %d\n.", size);
return -1;

default:
- printk(KERN_WARNING "i2c-amd8111.c: Unsupported transaction %d\n", size);
+ dev_warn(&adap->dev, "Unsupported transaction %d\n", size);
return -1;
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/