summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <greg@kroah.com>2003-04-01 19:48:13 -0800
committerGreg Kroah-Hartman <greg@kroah.com>2003-04-01 19:48:13 -0800
commit0a69163aeef6a07cd22e0d1e8566017c5d71e659 (patch)
treef6ace9fa044087dba70fcc8ce651ac190495fce2
parent8e46a83e23330e33582691f7ee892060cf23ddce (diff)
i2c: remove unused paramater in found_proc callback function.
(the users of this function have already been changed in previous patches)
-rw-r--r--drivers/i2c/i2c-proc.c4
-rw-r--r--include/linux/i2c-proc.h3
2 files changed, 3 insertions, 4 deletions
diff --git a/drivers/i2c/i2c-proc.c b/drivers/i2c/i2c-proc.c
index 99ddfba63201..3dd8a746c073 100644
--- a/drivers/i2c/i2c-proc.c
+++ b/drivers/i2c/i2c-proc.c
@@ -69,7 +69,7 @@ int i2c_detect(struct i2c_adapter *adapter,
((this_force->force[j] == SENSORS_ANY_I2C_BUS) && !is_isa)) &&
(addr == this_force->force[j + 1]) ) {
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;
found = 1;
}
@@ -162,7 +162,7 @@ int i2c_detect(struct i2c_adapter *adapter,
whether there is some client here at all! */
if (is_isa ||
(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 0;
diff --git a/include/linux/i2c-proc.h b/include/linux/i2c-proc.h
index 078a817de384..5201d7ce031b 100644
--- a/include/linux/i2c-proc.h
+++ b/include/linux/i2c-proc.h
@@ -328,8 +328,7 @@ struct i2c_address_data {
SENSORS_INSMOD
typedef int i2c_found_addr_proc(struct i2c_adapter *adapter,
- int addr, unsigned short flags,
- int kind);
+ int addr, int kind);
/* Detect function. It iterates over all possible addresses itself. For
SMBus addresses, it will only call found_proc if some client is connected