Commit 0a69163a authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

i2c: remove unused paramater in found_proc callback function.

(the users of this function have already been changed in previous patches)
parent 8e46a83e
...@@ -69,7 +69,7 @@ int i2c_detect(struct i2c_adapter *adapter, ...@@ -69,7 +69,7 @@ int i2c_detect(struct i2c_adapter *adapter,
((this_force->force[j] == SENSORS_ANY_I2C_BUS) && !is_isa)) && ((this_force->force[j] == SENSORS_ANY_I2C_BUS) && !is_isa)) &&
(addr == this_force->force[j + 1]) ) { (addr == this_force->force[j + 1]) ) {
dev_dbg(&adapter->dev, "found force parameter for adapter %d, addr %04x\n", adapter_id, addr); dev_dbg(&adapter->dev, "found force parameter for adapter %d, addr %04x\n", adapter_id, addr);
if ((err = found_proc(adapter, addr, 0, this_force->kind))) if ((err = found_proc(adapter, addr, this_force->kind)))
return err; return err;
found = 1; found = 1;
} }
...@@ -162,7 +162,7 @@ int i2c_detect(struct i2c_adapter *adapter, ...@@ -162,7 +162,7 @@ int i2c_detect(struct i2c_adapter *adapter,
whether there is some client here at all! */ whether there is some client here at all! */
if (is_isa || if (is_isa ||
(i2c_smbus_xfer (adapter, addr, 0, 0, 0, I2C_SMBUS_QUICK, NULL) >= 0)) (i2c_smbus_xfer (adapter, addr, 0, 0, 0, I2C_SMBUS_QUICK, NULL) >= 0))
if ((err = found_proc(adapter, addr, 0, -1))) if ((err = found_proc(adapter, addr, -1)))
return err; return err;
} }
return 0; return 0;
......
...@@ -328,8 +328,7 @@ struct i2c_address_data { ...@@ -328,8 +328,7 @@ struct i2c_address_data {
SENSORS_INSMOD SENSORS_INSMOD
typedef int i2c_found_addr_proc(struct i2c_adapter *adapter, typedef int i2c_found_addr_proc(struct i2c_adapter *adapter,
int addr, unsigned short flags, int addr, int kind);
int kind);
/* Detect function. It iterates over all possible addresses itself. For /* Detect function. It iterates over all possible addresses itself. For
SMBus addresses, it will only call found_proc if some client is connected SMBus addresses, it will only call found_proc if some client is connected
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment