Re: [PATCH] i2c driver fixes for 2.6.2-rc2

From: Greg KH
Date: Tue Jan 27 2004 - 18:42:56 EST


ChangeSet 1.1474.148.3, 2004/01/23 17:14:52-08:00, khali@xxxxxxxxxxxx

[PATCH] I2C: Fix bus reset in i2c-philips-par

This patch fixes the bus reset in i2c-philips-par when it is loaded with
type!=0. For now, the reset is always made as is type==0. I guess that
this driver will be abandoned in a while, but it probably doesn't hurt
to fix that.


drivers/i2c/busses/i2c-philips-par.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)


diff -Nru a/drivers/i2c/busses/i2c-philips-par.c b/drivers/i2c/busses/i2c-philips-par.c
--- a/drivers/i2c/busses/i2c-philips-par.c Tue Jan 27 15:27:08 2004
+++ b/drivers/i2c/busses/i2c-philips-par.c Tue Jan 27 15:27:08 2004
@@ -184,8 +184,8 @@
return;
}
/* reset hardware to sane state */
- bit_lp_setsda(port, 1);
- bit_lp_setscl(port, 1);
+ adapter->bit_lp_data.setsda(port, 1);
+ adapter->bit_lp_data.setscl(port, 1);
parport_release(adapter->pdev);

if (i2c_bit_add_bus(&adapter->adapter) < 0) {

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