···97979898static int adm1021_probe(struct i2c_client *client,9999 const struct i2c_device_id *id);100100-static int adm1021_detect(struct i2c_client *client, int kind,100100+static int adm1021_detect(struct i2c_client *client,101101 struct i2c_board_info *info);102102static void adm1021_init_client(struct i2c_client *client);103103static int adm1021_remove(struct i2c_client *client);···284284};285285286286/* Return 0 if detection is successful, -ENODEV otherwise */287287-static int adm1021_detect(struct i2c_client *client, int kind,287287+static int adm1021_detect(struct i2c_client *client,288288 struct i2c_board_info *info)289289{290290 struct i2c_adapter *adapter = client->adapter;
+2-2
drivers/hwmon/adm1025.c
···111111112112static int adm1025_probe(struct i2c_client *client,113113 const struct i2c_device_id *id);114114-static int adm1025_detect(struct i2c_client *client, int kind,114114+static int adm1025_detect(struct i2c_client *client,115115 struct i2c_board_info *info);116116static void adm1025_init_client(struct i2c_client *client);117117static int adm1025_remove(struct i2c_client *client);···409409};410410411411/* Return 0 if detection is successful, -ENODEV otherwise */412412-static int adm1025_detect(struct i2c_client *client, int kind,412412+static int adm1025_detect(struct i2c_client *client,413413 struct i2c_board_info *info)414414{415415 struct i2c_adapter *adapter = client->adapter;
+2-2
drivers/hwmon/adm1026.c
···293293294294static int adm1026_probe(struct i2c_client *client,295295 const struct i2c_device_id *id);296296-static int adm1026_detect(struct i2c_client *client, int kind,296296+static int adm1026_detect(struct i2c_client *client,297297 struct i2c_board_info *info);298298static int adm1026_remove(struct i2c_client *client);299299static int adm1026_read_value(struct i2c_client *client, u8 reg);···16501650};1651165116521652/* Return 0 if detection is successful, -ENODEV otherwise */16531653-static int adm1026_detect(struct i2c_client *client, int kind,16531653+static int adm1026_detect(struct i2c_client *client,16541654 struct i2c_board_info *info)16551655{16561656 struct i2c_adapter *adapter = client->adapter;
+2-2
drivers/hwmon/adm1029.c
···117117118118static int adm1029_probe(struct i2c_client *client,119119 const struct i2c_device_id *id);120120-static int adm1029_detect(struct i2c_client *client, int kind,120120+static int adm1029_detect(struct i2c_client *client,121121 struct i2c_board_info *info);122122static int adm1029_remove(struct i2c_client *client);123123static struct adm1029_data *adm1029_update_device(struct device *dev);···297297 */298298299299/* Return 0 if detection is successful, -ENODEV otherwise */300300-static int adm1029_detect(struct i2c_client *client, int kind,300300+static int adm1029_detect(struct i2c_client *client,301301 struct i2c_board_info *info)302302{303303 struct i2c_adapter *adapter = client->adapter;
+2-2
drivers/hwmon/adm1031.c
···102102103103static int adm1031_probe(struct i2c_client *client,104104 const struct i2c_device_id *id);105105-static int adm1031_detect(struct i2c_client *client, int kind,105105+static int adm1031_detect(struct i2c_client *client,106106 struct i2c_board_info *info);107107static void adm1031_init_client(struct i2c_client *client);108108static int adm1031_remove(struct i2c_client *client);···813813};814814815815/* Return 0 if detection is successful, -ENODEV otherwise */816816-static int adm1031_detect(struct i2c_client *client, int kind,816816+static int adm1031_detect(struct i2c_client *client,817817 struct i2c_board_info *info)818818{819819 struct i2c_adapter *adapter = client->adapter;
+2-2
drivers/hwmon/adm9240.c
···132132133133static int adm9240_probe(struct i2c_client *client,134134 const struct i2c_device_id *id);135135-static int adm9240_detect(struct i2c_client *client, int kind,135135+static int adm9240_detect(struct i2c_client *client,136136 struct i2c_board_info *info);137137static void adm9240_init_client(struct i2c_client *client);138138static int adm9240_remove(struct i2c_client *client);···545545/*** sensor chip detect and driver install ***/546546547547/* Return 0 if detection is successful, -ENODEV otherwise */548548-static int adm9240_detect(struct i2c_client *new_client, int kind,548548+static int adm9240_detect(struct i2c_client *new_client,549549 struct i2c_board_info *info)550550{551551 struct i2c_adapter *adapter = new_client->adapter;
+2-2
drivers/hwmon/ads7828.c
···7272};73737474/* Function declaration - necessary due to function dependencies */7575-static int ads7828_detect(struct i2c_client *client, int kind,7575+static int ads7828_detect(struct i2c_client *client,7676 struct i2c_board_info *info);7777static int ads7828_probe(struct i2c_client *client,7878 const struct i2c_device_id *id);···187187};188188189189/* Return 0 if detection is successful, -ENODEV otherwise */190190-static int ads7828_detect(struct i2c_client *client, int kind,190190+static int ads7828_detect(struct i2c_client *client,191191 struct i2c_board_info *info)192192{193193 struct i2c_adapter *adapter = client->adapter;
+2-2
drivers/hwmon/adt7462.c
···237237238238static int adt7462_probe(struct i2c_client *client,239239 const struct i2c_device_id *id);240240-static int adt7462_detect(struct i2c_client *client, int kind,240240+static int adt7462_detect(struct i2c_client *client,241241 struct i2c_board_info *info);242242static int adt7462_remove(struct i2c_client *client);243243···19021902};1903190319041904/* Return 0 if detection is successful, -ENODEV otherwise */19051905-static int adt7462_detect(struct i2c_client *client, int kind,19051905+static int adt7462_detect(struct i2c_client *client,19061906 struct i2c_board_info *info)19071907{19081908 struct i2c_adapter *adapter = client->adapter;
+2-2
drivers/hwmon/adt7470.c
···177177178178static int adt7470_probe(struct i2c_client *client,179179 const struct i2c_device_id *id);180180-static int adt7470_detect(struct i2c_client *client, int kind,180180+static int adt7470_detect(struct i2c_client *client,181181 struct i2c_board_info *info);182182static int adt7470_remove(struct i2c_client *client);183183···12251225};1226122612271227/* Return 0 if detection is successful, -ENODEV otherwise */12281228-static int adt7470_detect(struct i2c_client *client, int kind,12281228+static int adt7470_detect(struct i2c_client *client,12291229 struct i2c_board_info *info)12301230{12311231 struct i2c_adapter *adapter = client->adapter;
+2-2
drivers/hwmon/adt7473.c
···166166167167static int adt7473_probe(struct i2c_client *client,168168 const struct i2c_device_id *id);169169-static int adt7473_detect(struct i2c_client *client, int kind,169169+static int adt7473_detect(struct i2c_client *client,170170 struct i2c_board_info *info);171171static int adt7473_remove(struct i2c_client *client);172172···10851085};1086108610871087/* Return 0 if detection is successful, -ENODEV otherwise */10881088-static int adt7473_detect(struct i2c_client *client, int kind,10881088+static int adt7473_detect(struct i2c_client *client,10891089 struct i2c_board_info *info)10901090{10911091 struct i2c_adapter *adapter = client->adapter;
···209209210210static int asb100_probe(struct i2c_client *client,211211 const struct i2c_device_id *id);212212-static int asb100_detect(struct i2c_client *client, int kind,212212+static int asb100_detect(struct i2c_client *client,213213 struct i2c_board_info *info);214214static int asb100_remove(struct i2c_client *client);215215static struct asb100_data *asb100_update_device(struct device *dev);···697697}698698699699/* Return 0 if detection is successful, -ENODEV otherwise */700700-static int asb100_detect(struct i2c_client *client, int kind,700700+static int asb100_detect(struct i2c_client *client,701701 struct i2c_board_info *info)702702{703703 struct i2c_adapter *adapter = client->adapter;
+2-3
drivers/hwmon/atxp1.c
···5050 const struct i2c_device_id *id);5151static int atxp1_remove(struct i2c_client *client);5252static struct atxp1_data * atxp1_update_device(struct device *dev);5353-static int atxp1_detect(struct i2c_client *client, int kind,5454- struct i2c_board_info *info);5353+static int atxp1_detect(struct i2c_client *client, struct i2c_board_info *info);55545655static const struct i2c_device_id atxp1_id[] = {5756 { "atxp1", atxp1 },···274275275276276277/* Return 0 if detection is successful, -ENODEV otherwise */277277-static int atxp1_detect(struct i2c_client *new_client, int kind,278278+static int atxp1_detect(struct i2c_client *new_client,278279 struct i2c_board_info *info)279280{280281 struct i2c_adapter *adapter = new_client->adapter;
+1-1
drivers/hwmon/dme1737.c
···22082208}2209220922102210/* Return 0 if detection is successful, -ENODEV otherwise */22112211-static int dme1737_i2c_detect(struct i2c_client *client, int kind,22112211+static int dme1737_i2c_detect(struct i2c_client *client,22122212 struct i2c_board_info *info)22132213{22142214 struct i2c_adapter *adapter = client->adapter;
+1-1
drivers/hwmon/ds1621.c
···224224225225226226/* Return 0 if detection is successful, -ENODEV otherwise */227227-static int ds1621_detect(struct i2c_client *client, int kind,227227+static int ds1621_detect(struct i2c_client *client,228228 struct i2c_board_info *info)229229{230230 struct i2c_adapter *adapter = client->adapter;
+2-2
drivers/hwmon/f75375s.c
···113113 s8 temp_max_hyst[2];114114};115115116116-static int f75375_detect(struct i2c_client *client, int kind,116116+static int f75375_detect(struct i2c_client *client,117117 struct i2c_board_info *info);118118static int f75375_probe(struct i2c_client *client,119119 const struct i2c_device_id *id);···677677}678678679679/* Return 0 if detection is successful, -ENODEV otherwise */680680-static int f75375_detect(struct i2c_client *client, int kind,680680+static int f75375_detect(struct i2c_client *client,681681 struct i2c_board_info *info)682682{683683 struct i2c_adapter *adapter = client->adapter;
+2-2
drivers/hwmon/fschmd.c
···221221222222static int fschmd_probe(struct i2c_client *client,223223 const struct i2c_device_id *id);224224-static int fschmd_detect(struct i2c_client *client, int kind,224224+static int fschmd_detect(struct i2c_client *client,225225 struct i2c_board_info *info);226226static int fschmd_remove(struct i2c_client *client);227227static struct fschmd_data *fschmd_update_device(struct device *dev);···10001000 }10011001}1002100210031003-static int fschmd_detect(struct i2c_client *client, int _kind,10031003+static int fschmd_detect(struct i2c_client *client,10041004 struct i2c_board_info *info)10051005{10061006 enum chips kind;
+2-4
drivers/hwmon/gl518sm.c
···139139140140static int gl518_probe(struct i2c_client *client,141141 const struct i2c_device_id *id);142142-static int gl518_detect(struct i2c_client *client, int kind,143143- struct i2c_board_info *info);142142+static int gl518_detect(struct i2c_client *client, struct i2c_board_info *info);144143static void gl518_init_client(struct i2c_client *client);145144static int gl518_remove(struct i2c_client *client);146145static int gl518_read_value(struct i2c_client *client, u8 reg);···483484 */484485485486/* Return 0 if detection is successful, -ENODEV otherwise */486486-static int gl518_detect(struct i2c_client *client, int kind,487487- struct i2c_board_info *info)487487+static int gl518_detect(struct i2c_client *client, struct i2c_board_info *info)488488{489489 struct i2c_adapter *adapter = client->adapter;490490 int rev;
+2-4
drivers/hwmon/gl520sm.c
···81818282static int gl520_probe(struct i2c_client *client,8383 const struct i2c_device_id *id);8484-static int gl520_detect(struct i2c_client *client, int kind,8585- struct i2c_board_info *info);8484+static int gl520_detect(struct i2c_client *client, struct i2c_board_info *info);8685static void gl520_init_client(struct i2c_client *client);8786static int gl520_remove(struct i2c_client *client);8887static int gl520_read_value(struct i2c_client *client, u8 reg);···680681 */681682682683/* Return 0 if detection is successful, -ENODEV otherwise */683683-static int gl520_detect(struct i2c_client *client, int kind,684684- struct i2c_board_info *info)684684+static int gl520_detect(struct i2c_client *client, struct i2c_board_info *info)685685{686686 struct i2c_adapter *adapter = client->adapter;687687
+2-3
drivers/hwmon/lm63.c
···134134135135static struct lm63_data *lm63_update_device(struct device *dev);136136137137-static int lm63_detect(struct i2c_client *client, int kind,138138- struct i2c_board_info *info);137137+static int lm63_detect(struct i2c_client *client, struct i2c_board_info *info);139138static void lm63_init_client(struct i2c_client *client);140139141140/*···422423 */423424424425/* Return 0 if detection is successful, -ENODEV otherwise */425425-static int lm63_detect(struct i2c_client *new_client, int kind,426426+static int lm63_detect(struct i2c_client *new_client,426427 struct i2c_board_info *info)427428{428429 struct i2c_adapter *adapter = new_client->adapter;
+1-1
drivers/hwmon/lm73.c
···151151MODULE_DEVICE_TABLE(i2c, lm73_ids);152152153153/* Return 0 if detection is successful, -ENODEV otherwise */154154-static int lm73_detect(struct i2c_client *new_client, int kind,154154+static int lm73_detect(struct i2c_client *new_client,155155 struct i2c_board_info *info)156156{157157 struct i2c_adapter *adapter = new_client->adapter;
+1-1
drivers/hwmon/lm75.c
···234234MODULE_DEVICE_TABLE(i2c, lm75_ids);235235236236/* Return 0 if detection is successful, -ENODEV otherwise */237237-static int lm75_detect(struct i2c_client *new_client, int kind,237237+static int lm75_detect(struct i2c_client *new_client,238238 struct i2c_board_info *info)239239{240240 struct i2c_adapter *adapter = new_client->adapter;
+2-3
drivers/hwmon/lm77.c
···66666767static int lm77_probe(struct i2c_client *client,6868 const struct i2c_device_id *id);6969-static int lm77_detect(struct i2c_client *client, int kind,7070- struct i2c_board_info *info);6969+static int lm77_detect(struct i2c_client *client, struct i2c_board_info *info);7170static void lm77_init_client(struct i2c_client *client);7271static int lm77_remove(struct i2c_client *client);7372static u16 lm77_read_value(struct i2c_client *client, u8 reg);···244245};245246246247/* Return 0 if detection is successful, -ENODEV otherwise */247247-static int lm77_detect(struct i2c_client *new_client, int kind,248248+static int lm77_detect(struct i2c_client *new_client,248249 struct i2c_board_info *info)249250{250251 struct i2c_adapter *adapter = new_client->adapter;
+2-2
drivers/hwmon/lm78.c
···142142};143143144144145145-static int lm78_i2c_detect(struct i2c_client *client, int kind,145145+static int lm78_i2c_detect(struct i2c_client *client,146146 struct i2c_board_info *info);147147static int lm78_i2c_probe(struct i2c_client *client,148148 const struct i2c_device_id *id);···558558 return 1;559559}560560561561-static int lm78_i2c_detect(struct i2c_client *client, int kind,561561+static int lm78_i2c_detect(struct i2c_client *client,562562 struct i2c_board_info *info)563563{564564 int i;
+2-4
drivers/hwmon/lm80.c
···133133134134static int lm80_probe(struct i2c_client *client,135135 const struct i2c_device_id *id);136136-static int lm80_detect(struct i2c_client *client, int kind,137137- struct i2c_board_info *info);136136+static int lm80_detect(struct i2c_client *client, struct i2c_board_info *info);138137static void lm80_init_client(struct i2c_client *client);139138static int lm80_remove(struct i2c_client *client);140139static struct lm80_data *lm80_update_device(struct device *dev);···446447};447448448449/* Return 0 if detection is successful, -ENODEV otherwise */449449-static int lm80_detect(struct i2c_client *client, int kind,450450- struct i2c_board_info *info)450450+static int lm80_detect(struct i2c_client *client, struct i2c_board_info *info)451451{452452 struct i2c_adapter *adapter = client->adapter;453453 int i, cur;
+2-2
drivers/hwmon/lm83.c
···118118 * Functions declaration119119 */120120121121-static int lm83_detect(struct i2c_client *new_client, int kind,121121+static int lm83_detect(struct i2c_client *new_client,122122 struct i2c_board_info *info);123123static int lm83_probe(struct i2c_client *client,124124 const struct i2c_device_id *id);···291291 */292292293293/* Return 0 if detection is successful, -ENODEV otherwise */294294-static int lm83_detect(struct i2c_client *new_client, int kind,294294+static int lm83_detect(struct i2c_client *new_client,295295 struct i2c_board_info *info)296296{297297 struct i2c_adapter *adapter = new_client->adapter;
+2-4
drivers/hwmon/lm85.c
···323323 struct lm85_zone zone[3];324324};325325326326-static int lm85_detect(struct i2c_client *client, int kind,327327- struct i2c_board_info *info);326326+static int lm85_detect(struct i2c_client *client, struct i2c_board_info *info);328327static int lm85_probe(struct i2c_client *client,329328 const struct i2c_device_id *id);330329static int lm85_remove(struct i2c_client *client);···11551156}1156115711571158/* Return 0 if detection is successful, -ENODEV otherwise */11581158-static int lm85_detect(struct i2c_client *client, int kind,11591159- struct i2c_board_info *info)11591159+static int lm85_detect(struct i2c_client *client, struct i2c_board_info *info)11601160{11611161 struct i2c_adapter *adapter = client->adapter;11621162 int address = client->addr;
+2-2
drivers/hwmon/lm87.c
···158158159159static int lm87_probe(struct i2c_client *client,160160 const struct i2c_device_id *id);161161-static int lm87_detect(struct i2c_client *new_client, int kind,161161+static int lm87_detect(struct i2c_client *new_client,162162 struct i2c_board_info *info);163163static void lm87_init_client(struct i2c_client *client);164164static int lm87_remove(struct i2c_client *client);···662662};663663664664/* Return 0 if detection is successful, -ENODEV otherwise */665665-static int lm87_detect(struct i2c_client *new_client, int kind,665665+static int lm87_detect(struct i2c_client *new_client,666666 struct i2c_board_info *info)667667{668668 struct i2c_adapter *adapter = new_client->adapter;
+2-3
drivers/hwmon/lm90.c
···152152 * Functions declaration153153 */154154155155-static int lm90_detect(struct i2c_client *client, int kind,156156- struct i2c_board_info *info);155155+static int lm90_detect(struct i2c_client *client, struct i2c_board_info *info);157156static int lm90_probe(struct i2c_client *client,158157 const struct i2c_device_id *id);159158static void lm90_init_client(struct i2c_client *client);···655656}656657657658/* Return 0 if detection is successful, -ENODEV otherwise */658658-static int lm90_detect(struct i2c_client *new_client, int kind,659659+static int lm90_detect(struct i2c_client *new_client,659660 struct i2c_board_info *info)660661{661662 struct i2c_adapter *adapter = new_client->adapter;
+1-1
drivers/hwmon/lm92.c
···319319};320320321321/* Return 0 if detection is successful, -ENODEV otherwise */322322-static int lm92_detect(struct i2c_client *new_client, int kind,322322+static int lm92_detect(struct i2c_client *new_client,323323 struct i2c_board_info *info)324324{325325 struct i2c_adapter *adapter = new_client->adapter;
+1-2
drivers/hwmon/lm93.c
···25012501}2502250225032503/* Return 0 if detection is successful, -ENODEV otherwise */25042504-static int lm93_detect(struct i2c_client *client, int kind,25052505- struct i2c_board_info *info)25042504+static int lm93_detect(struct i2c_client *client, struct i2c_board_info *info)25062505{25072506 struct i2c_adapter *adapter = client->adapter;25082507 int mfr, ver;
+1-1
drivers/hwmon/lm95241.c
···310310};311311312312/* Return 0 if detection is successful, -ENODEV otherwise */313313-static int lm95241_detect(struct i2c_client *new_client, int kind,313313+static int lm95241_detect(struct i2c_client *new_client,314314 struct i2c_board_info *info)315315{316316 struct i2c_adapter *adapter = new_client->adapter;
+2-2
drivers/hwmon/max1619.c
···88888989static int max1619_probe(struct i2c_client *client,9090 const struct i2c_device_id *id);9191-static int max1619_detect(struct i2c_client *client, int kind,9191+static int max1619_detect(struct i2c_client *client,9292 struct i2c_board_info *info);9393static void max1619_init_client(struct i2c_client *client);9494static int max1619_remove(struct i2c_client *client);···226226 */227227228228/* Return 0 if detection is successful, -ENODEV otherwise */229229-static int max1619_detect(struct i2c_client *client, int kind,229229+static int max1619_detect(struct i2c_client *client,230230 struct i2c_board_info *info)231231{232232 struct i2c_adapter *adapter = client->adapter;
+2-2
drivers/hwmon/max6650.c
···116116117117static int max6650_probe(struct i2c_client *client,118118 const struct i2c_device_id *id);119119-static int max6650_detect(struct i2c_client *client, int kind,119119+static int max6650_detect(struct i2c_client *client,120120 struct i2c_board_info *info);121121static int max6650_init_client(struct i2c_client *client);122122static int max6650_remove(struct i2c_client *client);···528528 */529529530530/* Return 0 if detection is successful, -ENODEV otherwise */531531-static int max6650_detect(struct i2c_client *client, int kind,531531+static int max6650_detect(struct i2c_client *client,532532 struct i2c_board_info *info)533533{534534 struct i2c_adapter *adapter = client->adapter;
+1-1
drivers/hwmon/pcf8591.c
···169169 */170170171171/* Return 0 if detection is successful, -ENODEV otherwise */172172-static int pcf8591_detect(struct i2c_client *client, int kind,172172+static int pcf8591_detect(struct i2c_client *client,173173 struct i2c_board_info *info)174174{175175 struct i2c_adapter *adapter = client->adapter;
+2-2
drivers/hwmon/smsc47m192.c
···115115116116static int smsc47m192_probe(struct i2c_client *client,117117 const struct i2c_device_id *id);118118-static int smsc47m192_detect(struct i2c_client *client, int kind,118118+static int smsc47m192_detect(struct i2c_client *client,119119 struct i2c_board_info *info);120120static int smsc47m192_remove(struct i2c_client *client);121121static struct smsc47m192_data *smsc47m192_update_device(struct device *dev);···481481}482482483483/* Return 0 if detection is successful, -ENODEV otherwise */484484-static int smsc47m192_detect(struct i2c_client *client, int kind,484484+static int smsc47m192_detect(struct i2c_client *client,485485 struct i2c_board_info *info)486486{487487 struct i2c_adapter *adapter = client->adapter;
+2-2
drivers/hwmon/thmc50.c
···8484 u8 alarms;8585};86868787-static int thmc50_detect(struct i2c_client *client, int kind,8787+static int thmc50_detect(struct i2c_client *client,8888 struct i2c_board_info *info);8989static int thmc50_probe(struct i2c_client *client,9090 const struct i2c_device_id *id);···286286};287287288288/* Return 0 if detection is successful, -ENODEV otherwise */289289-static int thmc50_detect(struct i2c_client *client, int kind,289289+static int thmc50_detect(struct i2c_client *client,290290 struct i2c_board_info *info)291291{292292 unsigned company;
+2-2
drivers/hwmon/tmp401.c
···98989999static int tmp401_probe(struct i2c_client *client,100100 const struct i2c_device_id *id);101101-static int tmp401_detect(struct i2c_client *client, int kind,101101+static int tmp401_detect(struct i2c_client *client,102102 struct i2c_board_info *info);103103static int tmp401_remove(struct i2c_client *client);104104static struct tmp401_data *tmp401_update_device(struct device *dev);···488488 i2c_smbus_write_byte_data(client, TMP401_CONFIG_WRITE, config);489489}490490491491-static int tmp401_detect(struct i2c_client *client, int _kind,491491+static int tmp401_detect(struct i2c_client *client,492492 struct i2c_board_info *info)493493{494494 enum chips kind;
+1-1
drivers/hwmon/tmp421.c
···223223 return 0;224224}225225226226-static int tmp421_detect(struct i2c_client *client, int _kind,226226+static int tmp421_detect(struct i2c_client *client,227227 struct i2c_board_info *info)228228{229229 enum chips kind;
+1-2
drivers/hwmon/w83781d.c
···1051105110521052/* Return 0 if detection is successful, -ENODEV otherwise */10531053static int10541054-w83781d_detect(struct i2c_client *client, int kind,10551055- struct i2c_board_info *info)10541054+w83781d_detect(struct i2c_client *client, struct i2c_board_info *info)10561055{10571056 int val1, val2;10581057 struct w83781d_data *isa = w83781d_data_if_isa();
+2-2
drivers/hwmon/w83791d.c
···326326327327static int w83791d_probe(struct i2c_client *client,328328 const struct i2c_device_id *id);329329-static int w83791d_detect(struct i2c_client *client, int kind,329329+static int w83791d_detect(struct i2c_client *client,330330 struct i2c_board_info *info);331331static int w83791d_remove(struct i2c_client *client);332332···125912591260126012611261/* Return 0 if detection is successful, -ENODEV otherwise */12621262-static int w83791d_detect(struct i2c_client *client, int kind,12621262+static int w83791d_detect(struct i2c_client *client,12631263 struct i2c_board_info *info)12641264{12651265 struct i2c_adapter *adapter = client->adapter;
+2-2
drivers/hwmon/w83792d.c
···302302303303static int w83792d_probe(struct i2c_client *client,304304 const struct i2c_device_id *id);305305-static int w83792d_detect(struct i2c_client *client, int kind,305305+static int w83792d_detect(struct i2c_client *client,306306 struct i2c_board_info *info);307307static int w83792d_remove(struct i2c_client *client);308308static struct w83792d_data *w83792d_update_device(struct device *dev);···1263126312641264/* Return 0 if detection is successful, -ENODEV otherwise */12651265static int12661266-w83792d_detect(struct i2c_client *client, int kind, struct i2c_board_info *info)12661266+w83792d_detect(struct i2c_client *client, struct i2c_board_info *info)12671267{12681268 struct i2c_adapter *adapter = client->adapter;12691269 int val1, val2;
+2-2
drivers/hwmon/w83793.c
···230230static int w83793_write_value(struct i2c_client *client, u16 reg, u8 value);231231static int w83793_probe(struct i2c_client *client,232232 const struct i2c_device_id *id);233233-static int w83793_detect(struct i2c_client *client, int kind,233233+static int w83793_detect(struct i2c_client *client,234234 struct i2c_board_info *info);235235static int w83793_remove(struct i2c_client *client);236236static void w83793_init_client(struct i2c_client *client);···11611161}1162116211631163/* Return 0 if detection is successful, -ENODEV otherwise */11641164-static int w83793_detect(struct i2c_client *client, int kind,11641164+static int w83793_detect(struct i2c_client *client,11651165 struct i2c_board_info *info)11661166{11671167 u8 tmp, bank, chip_id;
+2-2
drivers/hwmon/w83l785ts.c
···83838484static int w83l785ts_probe(struct i2c_client *client,8585 const struct i2c_device_id *id);8686-static int w83l785ts_detect(struct i2c_client *client, int kind,8686+static int w83l785ts_detect(struct i2c_client *client,8787 struct i2c_board_info *info);8888static int w83l785ts_remove(struct i2c_client *client);8989static u8 w83l785ts_read_value(struct i2c_client *client, u8 reg, u8 defval);···146146 */147147148148/* Return 0 if detection is successful, -ENODEV otherwise */149149-static int w83l785ts_detect(struct i2c_client *client, int kind,149149+static int w83l785ts_detect(struct i2c_client *client,150150 struct i2c_board_info *info)151151{152152 struct i2c_adapter *adapter = client->adapter;
+2-3
drivers/hwmon/w83l786ng.c
···147147148148static int w83l786ng_probe(struct i2c_client *client,149149 const struct i2c_device_id *id);150150-static int w83l786ng_detect(struct i2c_client *client, int kind,150150+static int w83l786ng_detect(struct i2c_client *client,151151 struct i2c_board_info *info);152152static int w83l786ng_remove(struct i2c_client *client);153153static void w83l786ng_init_client(struct i2c_client *client);···586586};587587588588static int589589-w83l786ng_detect(struct i2c_client *client, int kind,590590- struct i2c_board_info *info)589589+w83l786ng_detect(struct i2c_client *client, struct i2c_board_info *info)591590{592591 struct i2c_adapter *adapter = client->adapter;593592 u16 man_id;
+1-1
drivers/i2c/i2c-core.c
···11841184 /* Finally call the custom detection function */11851185 memset(&info, 0, sizeof(struct i2c_board_info));11861186 info.addr = addr;11871187- err = driver->detect(temp_client, -1, &info);11871187+ err = driver->detect(temp_client, &info);11881188 if (err) {11891189 /* -ENODEV is returned if the detection fails. We catch it11901190 here as this isn't an error. */
+1-2
drivers/misc/eeprom/eeprom.c
···135135};136136137137/* Return 0 if detection is successful, -ENODEV otherwise */138138-static int eeprom_detect(struct i2c_client *client, int kind,139139- struct i2c_board_info *info)138138+static int eeprom_detect(struct i2c_client *client, struct i2c_board_info *info)140139{141140 struct i2c_adapter *adapter = client->adapter;142141
+2-2
drivers/misc/ics932s401.c
···106106107107static int ics932s401_probe(struct i2c_client *client,108108 const struct i2c_device_id *id);109109-static int ics932s401_detect(struct i2c_client *client, int kind,109109+static int ics932s401_detect(struct i2c_client *client,110110 struct i2c_board_info *info);111111static int ics932s401_remove(struct i2c_client *client);112112···413413}414414415415/* Return 0 if detection is successful, -ENODEV otherwise */416416-static int ics932s401_detect(struct i2c_client *client, int kind,416416+static int ics932s401_detect(struct i2c_client *client,417417 struct i2c_board_info *info)418418{419419 struct i2c_adapter *adapter = client->adapter;
+1-1
include/linux/i2c.h
···161161 const struct i2c_device_id *id_table;162162163163 /* Device detection callback for automatic device creation */164164- int (*detect)(struct i2c_client *, int kind, struct i2c_board_info *);164164+ int (*detect)(struct i2c_client *, struct i2c_board_info *);165165 const struct i2c_client_address_data *address_data;166166 struct list_head clients;167167};