i2c: Drop the kind parameter from detect callbacks

The "kind" parameter always has value -1, and nobody is using it any
longer, so we can remove it.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Wolfram Sang <w.sang@pengutronix.de>
Tento commit je obsažen v:
Jean Delvare
2009-12-14 21:17:23 +01:00
rodič f40542532e
revize 310ec79210
49 změnil soubory, kde provedl 84 přidání a 100 odebrání

Zobrazit soubor

@@ -142,7 +142,7 @@ struct lm78_data {
};
static int lm78_i2c_detect(struct i2c_client *client, int kind,
static int lm78_i2c_detect(struct i2c_client *client,
struct i2c_board_info *info);
static int lm78_i2c_probe(struct i2c_client *client,
const struct i2c_device_id *id);
@@ -558,7 +558,7 @@ static int lm78_alias_detect(struct i2c_client *client, u8 chipid)
return 1;
}
static int lm78_i2c_detect(struct i2c_client *client, int kind,
static int lm78_i2c_detect(struct i2c_client *client,
struct i2c_board_info *info)
{
int i;