From f3c6ff2376077b34e878b33793224f768d7ba51d Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Fri, 23 Jan 2004 01:14:52 -0800 Subject: [PATCH] [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 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-philips-par.c b/drivers/i2c/busses/i2c-philips-par.c index 583efdb6001f5..f1bbb148e11a1 100644 --- a/drivers/i2c/busses/i2c-philips-par.c +++ b/drivers/i2c/busses/i2c-philips-par.c @@ -184,8 +184,8 @@ static void i2c_parport_attach (struct parport *port) 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) { -- 2.53.0