Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4645
b: refs/heads/master
c: 9ab1ee2
h: refs/heads/master
i:
  4643: d284914
v: v3
  • Loading branch information
Jean Delvare authored and Greg Kroah-Hartman committed Jul 11, 2005
1 parent 8d63800 commit 017663e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 541e6a02768404efb06bd1ea5f33d614732f41fc
refs/heads/master: 9ab1ee2ab7d65979c0f14a60ee1f29f8988f5811
6 changes: 5 additions & 1 deletion trunk/drivers/i2c/chips/max6875.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
#include <linux/i2c-sensor.h>

/* Addresses to scan */
static unsigned short normal_i2c[] = {0x50, 0x52, I2C_CLIENT_END};
/* No address scanned by default, as this could corrupt standard EEPROMS. */
static unsigned short normal_i2c[] = {I2C_CLIENT_END};
static unsigned int normal_isa[] = {I2C_CLIENT_ISA_END};

/* Insmod parameters */
Expand Down Expand Up @@ -369,6 +370,9 @@ static int max6875_detect(struct i2c_adapter *adapter, int address, int kind)
new_client->driver = &max6875_driver;
new_client->flags = 0;

/* Prevent 24RF08 corruption */
i2c_smbus_write_quick(new_client, 0);

/* Setup the user section */
data->blocks[max6875_eeprom_user].type = max6875_eeprom_user;
data->blocks[max6875_eeprom_user].slices = USER_EEPROM_SLICES;
Expand Down

0 comments on commit 017663e

Please sign in to comment.