Skip to contentSkip to conversation

i2c/max6875: Really prevent 24RF08 corruption

PATCH New Jean Delvare 1 participant 1 message May 17, 2008 I2C subsystem host drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c/max6875: Really prevent 24RF08 corruption

i2c-core takes care of the possible corruption of 24RF08 chips for quite some times, so device devices no longer need to do it. And they really should not, as applying the prevention twice voids it.

I thought that I had fixed all drivers long ago but apparently I had missed that one.

Cc Ben Gardner <bgardner-ohtLXRgXiI/[email protected]>

---
This one should go in 2.6.26.

 drivers/i2c/chips/max6875.c |    3 ---
 1 file changed, 3 deletions(-)
drivers/i2c/chips/max6875.c +0 -3
@@ -207,9 +207,6 @@ static int max6875_detect(struct i2c_ada
 	fake_client->flags = 0;
 	strlcpy(fake_client->name, "max6875 subclient", I2C_NAME_SIZE);
 
-	/* Prevent 24RF08 corruption (in case of user error) */
-	i2c_smbus_write_quick(real_client, 0);
-
 	if ((err = i2c_attach_client(real_client)) != 0)
 		goto exit_kfree2;
 
Signature · 6 lines
Jean Delvare

_______________________________________________
i2c mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/i2c