aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/hwmon/adm1021.c4
-rw-r--r--drivers/hwmon/adm1025.c4
-rw-r--r--drivers/hwmon/adm1026.c4
-rw-r--r--drivers/hwmon/adm1029.c4
-rw-r--r--drivers/hwmon/adm1031.c4
-rw-r--r--drivers/hwmon/adm9240.c4
-rw-r--r--drivers/hwmon/ads7828.c4
-rw-r--r--drivers/hwmon/adt7462.c4
-rw-r--r--drivers/hwmon/adt7470.c4
-rw-r--r--drivers/hwmon/adt7473.c4
-rw-r--r--drivers/hwmon/adt7475.c2
-rw-r--r--drivers/hwmon/asb100.c4
-rw-r--r--drivers/hwmon/atxp1.c5
-rw-r--r--drivers/hwmon/dme1737.c2
-rw-r--r--drivers/hwmon/ds1621.c2
-rw-r--r--drivers/hwmon/f75375s.c4
-rw-r--r--drivers/hwmon/fschmd.c4
-rw-r--r--drivers/hwmon/gl518sm.c6
-rw-r--r--drivers/hwmon/gl520sm.c6
-rw-r--r--drivers/hwmon/lm63.c5
-rw-r--r--drivers/hwmon/lm73.c2
-rw-r--r--drivers/hwmon/lm75.c2
-rw-r--r--drivers/hwmon/lm77.c5
-rw-r--r--drivers/hwmon/lm78.c4
-rw-r--r--drivers/hwmon/lm80.c6
-rw-r--r--drivers/hwmon/lm83.c4
-rw-r--r--drivers/hwmon/lm85.c6
-rw-r--r--drivers/hwmon/lm87.c4
-rw-r--r--drivers/hwmon/lm90.c5
-rw-r--r--drivers/hwmon/lm92.c2
-rw-r--r--drivers/hwmon/lm93.c3
-rw-r--r--drivers/hwmon/lm95241.c2
-rw-r--r--drivers/hwmon/max1619.c4
-rw-r--r--drivers/hwmon/max6650.c4
-rw-r--r--drivers/hwmon/pcf8591.c2
-rw-r--r--drivers/hwmon/smsc47m192.c4
-rw-r--r--drivers/hwmon/thmc50.c4
-rw-r--r--drivers/hwmon/tmp401.c4
-rw-r--r--drivers/hwmon/tmp421.c2
-rw-r--r--drivers/hwmon/w83781d.c3
-rw-r--r--drivers/hwmon/w83791d.c4
-rw-r--r--drivers/hwmon/w83792d.c4
-rw-r--r--drivers/hwmon/w83793.c4
-rw-r--r--drivers/hwmon/w83l785ts.c4
-rw-r--r--drivers/hwmon/w83l786ng.c5
-rw-r--r--drivers/i2c/i2c-core.c2
-rw-r--r--drivers/misc/eeprom/eeprom.c3
-rw-r--r--drivers/misc/ics932s401.c4
-rw-r--r--include/linux/i2c.h2
49 files changed, 84 insertions, 100 deletions
diff --git a/drivers/hwmon/adm1021.c b/drivers/hwmon/adm1021.c
index 33acf29531af..3ebcdd9c25a5 100644
--- a/drivers/hwmon/adm1021.c
+++ b/drivers/hwmon/adm1021.c
@@ -97,7 +97,7 @@ struct adm1021_data {
97 97
98static int adm1021_probe(struct i2c_client *client, 98static int adm1021_probe(struct i2c_client *client,
99 const struct i2c_device_id *id); 99 const struct i2c_device_id *id);
100static int adm1021_detect(struct i2c_client *client, int kind, 100static int adm1021_detect(struct i2c_client *client,
101 struct i2c_board_info *info); 101 struct i2c_board_info *info);
102static void adm1021_init_client(struct i2c_client *client); 102static void adm1021_init_client(struct i2c_client *client);
103static int adm1021_remove(struct i2c_client *client); 103static int adm1021_remove(struct i2c_client *client);
@@ -284,7 +284,7 @@ static const struct attribute_group adm1021_group = {
284}; 284};
285 285
286/* Return 0 if detection is successful, -ENODEV otherwise */ 286/* Return 0 if detection is successful, -ENODEV otherwise */
287static int adm1021_detect(struct i2c_client *client, int kind, 287static int adm1021_detect(struct i2c_client *client,
288 struct i2c_board_info *info) 288 struct i2c_board_info *info)
289{ 289{
290 struct i2c_adapter *adapter = client->adapter; 290 struct i2c_adapter *adapter = client->adapter;
diff --git a/drivers/hwmon/adm1025.c b/drivers/hwmon/adm1025.c
index db6ac2b04f6f..357c9ffa147e 100644
--- a/drivers/hwmon/adm1025.c
+++ b/drivers/hwmon/adm1025.c
@@ -111,7 +111,7 @@ static const int in_scale[6] = { 2500, 2250, 3300, 5000, 12000, 3300 };
111 111
112static int adm1025_probe(struct i2c_client *client, 112static int adm1025_probe(struct i2c_client *client,
113 const struct i2c_device_id *id); 113 const struct i2c_device_id *id);
114static int adm1025_detect(struct i2c_client *client, int kind, 114static int adm1025_detect(struct i2c_client *client,
115 struct i2c_board_info *info); 115 struct i2c_board_info *info);
116static void adm1025_init_client(struct i2c_client *client); 116static void adm1025_init_client(struct i2c_client *client);
117static int adm1025_remove(struct i2c_client *client); 117static int adm1025_remove(struct i2c_client *client);
@@ -409,7 +409,7 @@ static const struct attribute_group adm1025_group_in4 = {
409}; 409};
410 410
411/* Return 0 if detection is successful, -ENODEV otherwise */ 411/* Return 0 if detection is successful, -ENODEV otherwise */
412static int adm1025_detect(struct i2c_client *client, int kind, 412static int adm1025_detect(struct i2c_client *client,
413 struct i2c_board_info *info) 413 struct i2c_board_info *info)
414{ 414{
415 struct i2c_adapter *adapter = client->adapter; 415 struct i2c_adapter *adapter = client->adapter;
diff --git a/drivers/hwmon/adm1026.c b/drivers/hwmon/adm1026.c
index fb5363985e21..8deb17a402da 100644
--- a/drivers/hwmon/adm1026.c
+++ b/drivers/hwmon/adm1026.c
@@ -293,7 +293,7 @@ struct adm1026_data {
293 293
294static int adm1026_probe(struct i2c_client *client, 294static int adm1026_probe(struct i2c_client *client,
295 const struct i2c_device_id *id); 295 const struct i2c_device_id *id);
296static int adm1026_detect(struct i2c_client *client, int kind, 296static int adm1026_detect(struct i2c_client *client,
297 struct i2c_board_info *info); 297 struct i2c_board_info *info);
298static int adm1026_remove(struct i2c_client *client); 298static int adm1026_remove(struct i2c_client *client);
299static int adm1026_read_value(struct i2c_client *client, u8 reg); 299static int adm1026_read_value(struct i2c_client *client, u8 reg);
@@ -1650,7 +1650,7 @@ static const struct attribute_group adm1026_group_in8_9 = {
1650}; 1650};
1651 1651
1652/* Return 0 if detection is successful, -ENODEV otherwise */ 1652/* Return 0 if detection is successful, -ENODEV otherwise */
1653static int adm1026_detect(struct i2c_client *client, int kind, 1653static int adm1026_detect(struct i2c_client *client,
1654 struct i2c_board_info *info) 1654 struct i2c_board_info *info)
1655{ 1655{
1656 struct i2c_adapter *adapter = client->adapter; 1656 struct i2c_adapter *adapter = client->adapter;
diff --git a/drivers/hwmon/adm1029.c b/drivers/hwmon/adm1029.c
index ef91e2a4a567..9bc9dbcacdbd 100644
--- a/drivers/hwmon/adm1029.c
+++ b/drivers/hwmon/adm1029.c
@@ -117,7 +117,7 @@ static const u8 ADM1029_REG_FAN_DIV[] = {
117 117
118static int adm1029_probe(struct i2c_client *client, 118static int adm1029_probe(struct i2c_client *client,
119 const struct i2c_device_id *id); 119 const struct i2c_device_id *id);
120static int adm1029_detect(struct i2c_client *client, int kind, 120static int adm1029_detect(struct i2c_client *client,
121 struct i2c_board_info *info); 121 struct i2c_board_info *info);
122static int adm1029_remove(struct i2c_client *client); 122static int adm1029_remove(struct i2c_client *client);
123static struct adm1029_data *adm1029_update_device(struct device *dev); 123static struct adm1029_data *adm1029_update_device(struct device *dev);
@@ -297,7 +297,7 @@ static const struct attribute_group adm1029_group = {
297 */ 297 */
298 298
299/* Return 0 if detection is successful, -ENODEV otherwise */ 299/* Return 0 if detection is successful, -ENODEV otherwise */
300static int adm1029_detect(struct i2c_client *client, int kind, 300static int adm1029_detect(struct i2c_client *client,
301 struct i2c_board_info *info) 301 struct i2c_board_info *info)
302{ 302{
303 struct i2c_adapter *adapter = client->adapter; 303 struct i2c_adapter *adapter = client->adapter;
diff --git a/drivers/hwmon/adm1031.c b/drivers/hwmon/adm1031.c
index 0e722175aae0..cebfbf6926da 100644
--- a/drivers/hwmon/adm1031.c
+++ b/drivers/hwmon/adm1031.c
@@ -102,7 +102,7 @@ struct adm1031_data {
102 102
103static int adm1031_probe(struct i2c_client *client, 103static int adm1031_probe(struct i2c_client *client,
104 const struct i2c_device_id *id); 104 const struct i2c_device_id *id);
105static int adm1031_detect(struct i2c_client *client, int kind, 105static int adm1031_detect(struct i2c_client *client,
106 struct i2c_board_info *info); 106 struct i2c_board_info *info);
107static void adm1031_init_client(struct i2c_client *client); 107static void adm1031_init_client(struct i2c_client *client);
108static int adm1031_remove(struct i2c_client *client); 108static int adm1031_remove(struct i2c_client *client);
@@ -813,7 +813,7 @@ static const struct attribute_group adm1031_group_opt = {
813}; 813};
814 814
815/* Return 0 if detection is successful, -ENODEV otherwise */ 815/* Return 0 if detection is successful, -ENODEV otherwise */
816static int adm1031_detect(struct i2c_client *client, int kind, 816static int adm1031_detect(struct i2c_client *client,
817 struct i2c_board_info *info) 817 struct i2c_board_info *info)
818{ 818{
819 struct i2c_adapter *adapter = client->adapter; 819 struct i2c_adapter *adapter = client->adapter;
diff --git a/drivers/hwmon/adm9240.c b/drivers/hwmon/adm9240.c
index 20e0481cc206..9316e074d690 100644
--- a/drivers/hwmon/adm9240.c
+++ b/drivers/hwmon/adm9240.c
@@ -132,7 +132,7 @@ static inline unsigned int AOUT_FROM_REG(u8 reg)
132 132
133static int adm9240_probe(struct i2c_client *client, 133static int adm9240_probe(struct i2c_client *client,
134 const struct i2c_device_id *id); 134 const struct i2c_device_id *id);
135static int adm9240_detect(struct i2c_client *client, int kind, 135static int adm9240_detect(struct i2c_client *client,
136 struct i2c_board_info *info); 136 struct i2c_board_info *info);
137static void adm9240_init_client(struct i2c_client *client); 137static void adm9240_init_client(struct i2c_client *client);
138static int adm9240_remove(struct i2c_client *client); 138static int adm9240_remove(struct i2c_client *client);
@@ -545,7 +545,7 @@ static const struct attribute_group adm9240_group = {
545/*** sensor chip detect and driver install ***/ 545/*** sensor chip detect and driver install ***/
546 546
547/* Return 0 if detection is successful, -ENODEV otherwise */ 547/* Return 0 if detection is successful, -ENODEV otherwise */
548static int adm9240_detect(struct i2c_client *new_client, int kind, 548static int adm9240_detect(struct i2c_client *new_client,
549 struct i2c_board_info *info) 549 struct i2c_board_info *info)
550{ 550{
551 struct i2c_adapter *adapter = new_client->adapter; 551 struct i2c_adapter *adapter = new_client->adapter;
diff --git a/drivers/hwmon/ads7828.c b/drivers/hwmon/ads7828.c
index 451977bca7d6..b50893111532 100644
--- a/drivers/hwmon/ads7828.c
+++ b/drivers/hwmon/ads7828.c
@@ -72,7 +72,7 @@ struct ads7828_data {
72}; 72};
73 73
74/* Function declaration - necessary due to function dependencies */ 74/* Function declaration - necessary due to function dependencies */
75static int ads7828_detect(struct i2c_client *client, int kind, 75static int ads7828_detect(struct i2c_client *client,
76 struct i2c_board_info *info); 76 struct i2c_board_info *info);
77static int ads7828_probe(struct i2c_client *client, 77static int ads7828_probe(struct i2c_client *client,
78 const struct i2c_device_id *id); 78 const struct i2c_device_id *id);
@@ -187,7 +187,7 @@ static struct i2c_driver ads7828_driver = {
187}; 187};
188 188
189/* Return 0 if detection is successful, -ENODEV otherwise */ 189/* Return 0 if detection is successful, -ENODEV otherwise */
190static int ads7828_detect(struct i2c_client *client, int kind, 190static int ads7828_detect(struct i2c_client *client,
191 struct i2c_board_info *info) 191 struct i2c_board_info *info)
192{ 192{
193 struct i2c_adapter *adapter = client->adapter; 193 struct i2c_adapter *adapter = client->adapter;
diff --git a/drivers/hwmon/adt7462.c b/drivers/hwmon/adt7462.c
index f9c9562b6a94..30cf002c677f 100644
--- a/drivers/hwmon/adt7462.c
+++ b/drivers/hwmon/adt7462.c
@@ -237,7 +237,7 @@ struct adt7462_data {
237 237
238static int adt7462_probe(struct i2c_client *client, 238static int adt7462_probe(struct i2c_client *client,
239 const struct i2c_device_id *id); 239 const struct i2c_device_id *id);
240static int adt7462_detect(struct i2c_client *client, int kind, 240static int adt7462_detect(struct i2c_client *client,
241 struct i2c_board_info *info); 241 struct i2c_board_info *info);
242static int adt7462_remove(struct i2c_client *client); 242static int adt7462_remove(struct i2c_client *client);
243 243
@@ -1902,7 +1902,7 @@ static struct attribute *adt7462_attr[] =
1902}; 1902};
1903 1903
1904/* Return 0 if detection is successful, -ENODEV otherwise */ 1904/* Return 0 if detection is successful, -ENODEV otherwise */
1905static int adt7462_detect(struct i2c_client *client, int kind, 1905static int adt7462_detect(struct i2c_client *client,
1906 struct i2c_board_info *info) 1906 struct i2c_board_info *info)
1907{ 1907{
1908 struct i2c_adapter *adapter = client->adapter; 1908 struct i2c_adapter *adapter = client->adapter;
diff --git a/drivers/hwmon/adt7470.c b/drivers/hwmon/adt7470.c
index 32b1750a6890..9ffe5c6e495d 100644
--- a/drivers/hwmon/adt7470.c
+++ b/drivers/hwmon/adt7470.c
@@ -177,7 +177,7 @@ struct adt7470_data {
177 177
178static int adt7470_probe(struct i2c_client *client, 178static int adt7470_probe(struct i2c_client *client,
179 const struct i2c_device_id *id); 179 const struct i2c_device_id *id);
180static int adt7470_detect(struct i2c_client *client, int kind, 180static int adt7470_detect(struct i2c_client *client,
181 struct i2c_board_info *info); 181 struct i2c_board_info *info);
182static int adt7470_remove(struct i2c_client *client); 182static int adt7470_remove(struct i2c_client *client);
183 183
@@ -1225,7 +1225,7 @@ static struct attribute *adt7470_attr[] =
1225}; 1225};
1226 1226
1227/* Return 0 if detection is successful, -ENODEV otherwise */ 1227/* Return 0 if detection is successful, -ENODEV otherwise */
1228static int adt7470_detect(struct i2c_client *client, int kind, 1228static int adt7470_detect(struct i2c_client *client,
1229 struct i2c_board_info *info) 1229 struct i2c_board_info *info)
1230{ 1230{
1231 struct i2c_adapter *adapter = client->adapter; 1231 struct i2c_adapter *adapter = client->adapter;
diff --git a/drivers/hwmon/adt7473.c b/drivers/hwmon/adt7473.c
index aea244db974e..78fadaa431e2 100644
--- a/drivers/hwmon/adt7473.c
+++ b/drivers/hwmon/adt7473.c
@@ -166,7 +166,7 @@ struct adt7473_data {
166 166
167static int adt7473_probe(struct i2c_client *client, 167static int adt7473_probe(struct i2c_client *client,
168 const struct i2c_device_id *id); 168 const struct i2c_device_id *id);
169static int adt7473_detect(struct i2c_client *client, int kind, 169static int adt7473_detect(struct i2c_client *client,
170 struct i2c_board_info *info); 170 struct i2c_board_info *info);
171static int adt7473_remove(struct i2c_client *client); 171static int adt7473_remove(struct i2c_client *client);
172 172
@@ -1085,7 +1085,7 @@ static struct attribute *adt7473_attr[] =
1085}; 1085};
1086 1086
1087/* Return 0 if detection is successful, -ENODEV otherwise */ 1087/* Return 0 if detection is successful, -ENODEV otherwise */
1088static int adt7473_detect(struct i2c_client *client, int kind, 1088static int adt7473_detect(struct i2c_client *client,
1089 struct i2c_board_info *info) 1089 struct i2c_board_info *info)
1090{ 1090{
1091 struct i2c_adapter *adapter = client->adapter; 1091 struct i2c_adapter *adapter = client->adapter;
diff --git a/drivers/hwmon/adt7475.c b/drivers/hwmon/adt7475.c
index 99abfddedbc3..3c0571551a9f 100644
--- a/drivers/hwmon/adt7475.c
+++ b/drivers/hwmon/adt7475.c
@@ -1172,7 +1172,7 @@ static struct attribute_group in4_attr_group = { .attrs = in4_attrs };
1172static struct attribute_group in5_attr_group = { .attrs = in5_attrs }; 1172static struct attribute_group in5_attr_group = { .attrs = in5_attrs };
1173static struct attribute_group vid_attr_group = { .attrs = vid_attrs }; 1173static struct attribute_group vid_attr_group = { .attrs = vid_attrs };
1174 1174
1175static int adt7475_detect(struct i2c_client *client, int kind, 1175static int adt7475_detect(struct i2c_client *client,
1176 struct i2c_board_info *info) 1176 struct i2c_board_info *info)
1177{ 1177{
1178 struct i2c_adapter *adapter = client->adapter; 1178 struct i2c_adapter *adapter = client->adapter;
diff --git a/drivers/hwmon/asb100.c b/drivers/hwmon/asb100.c
index 480f80ea1fa0..507e116d5456 100644
--- a/drivers/hwmon/asb100.c
+++ b/drivers/hwmon/asb100.c
@@ -209,7 +209,7 @@ static void asb100_write_value(struct i2c_client *client, u16 reg, u16 val);
209 209
210static int asb100_probe(struct i2c_client *client, 210static int asb100_probe(struct i2c_client *client,
211 const struct i2c_device_id *id); 211 const struct i2c_device_id *id);
212static int asb100_detect(struct i2c_client *client, int kind, 212static int asb100_detect(struct i2c_client *client,
213 struct i2c_board_info *info); 213 struct i2c_board_info *info);
214static int asb100_remove(struct i2c_client *client); 214static int asb100_remove(struct i2c_client *client);
215static struct asb100_data *asb100_update_device(struct device *dev); 215static struct asb100_data *asb100_update_device(struct device *dev);
@@ -697,7 +697,7 @@ ERROR_SC_2:
697} 697}
698 698
699/* Return 0 if detection is successful, -ENODEV otherwise */ 699/* Return 0 if detection is successful, -ENODEV otherwise */
700static int asb100_detect(struct i2c_client *client, int kind, 700static int asb100_detect(struct i2c_client *client,
701 struct i2c_board_info *info) 701 struct i2c_board_info *info)
702{ 702{
703 struct i2c_adapter *adapter = client->adapter; 703 struct i2c_adapter *adapter = client->adapter;
diff --git a/drivers/hwmon/atxp1.c b/drivers/hwmon/atxp1.c
index d6b490d3e36f..6b7459745b66 100644
--- a/drivers/hwmon/atxp1.c
+++ b/drivers/hwmon/atxp1.c
@@ -50,8 +50,7 @@ static int atxp1_probe(struct i2c_client *client,
50 const struct i2c_device_id *id); 50 const struct i2c_device_id *id);
51static int atxp1_remove(struct i2c_client *client); 51static int atxp1_remove(struct i2c_client *client);
52static struct atxp1_data * atxp1_update_device(struct device *dev); 52static struct atxp1_data * atxp1_update_device(struct device *dev);
53static int atxp1_detect(struct i2c_client *client, int kind, 53static int atxp1_detect(struct i2c_client *client, struct i2c_board_info *info);
54 struct i2c_board_info *info);
55 54
56static const struct i2c_device_id atxp1_id[] = { 55static const struct i2c_device_id atxp1_id[] = {
57 { "atxp1", atxp1 }, 56 { "atxp1", atxp1 },
@@ -275,7 +274,7 @@ static const struct attribute_group atxp1_group = {
275 274
276 275
277/* Return 0 if detection is successful, -ENODEV otherwise */ 276/* Return 0 if detection is successful, -ENODEV otherwise */
278static int atxp1_detect(struct i2c_client *new_client, int kind, 277static int atxp1_detect(struct i2c_client *new_client,
279 struct i2c_board_info *info) 278 struct i2c_board_info *info)
280{ 279{
281 struct i2c_adapter *adapter = new_client->adapter; 280 struct i2c_adapter *adapter = new_client->adapter;
diff --git a/drivers/hwmon/dme1737.c b/drivers/hwmon/dme1737.c
index 4377bb0cc526..7024617c1194 100644
--- a/drivers/hwmon/dme1737.c
+++ b/drivers/hwmon/dme1737.c
@@ -2208,7 +2208,7 @@ exit:
2208} 2208}
2209 2209
2210/* Return 0 if detection is successful, -ENODEV otherwise */ 2210/* Return 0 if detection is successful, -ENODEV otherwise */
2211static int dme1737_i2c_detect(struct i2c_client *client, int kind, 2211static int dme1737_i2c_detect(struct i2c_client *client,
2212 struct i2c_board_info *info) 2212 struct i2c_board_info *info)
2213{ 2213{
2214 struct i2c_adapter *adapter = client->adapter; 2214 struct i2c_adapter *adapter = client->adapter;
diff --git a/drivers/hwmon/ds1621.c b/drivers/hwmon/ds1621.c
index 2a4c6a05b14f..5fde2f5139fd 100644
--- a/drivers/hwmon/ds1621.c
+++ b/drivers/hwmon/ds1621.c
@@ -224,7 +224,7 @@ static const struct attribute_group ds1621_group = {
224 224
225 225
226/* Return 0 if detection is successful, -ENODEV otherwise */ 226/* Return 0 if detection is successful, -ENODEV otherwise */
227static int ds1621_detect(struct i2c_client *client, int kind, 227static int ds1621_detect(struct i2c_client *client,
228 struct i2c_board_info *info) 228 struct i2c_board_info *info)
229{ 229{
230 struct i2c_adapter *adapter = client->adapter; 230 struct i2c_adapter *adapter = client->adapter;
diff --git a/drivers/hwmon/f75375s.c b/drivers/hwmon/f75375s.c
index 40dfbcd3f3f2..2ffcf56b6f4e 100644
--- a/drivers/hwmon/f75375s.c
+++ b/drivers/hwmon/f75375s.c
@@ -113,7 +113,7 @@ struct f75375_data {
113 s8 temp_max_hyst[2]; 113 s8 temp_max_hyst[2];
114}; 114};
115 115
116static int f75375_detect(struct i2c_client *client, int kind, 116static int f75375_detect(struct i2c_client *client,
117 struct i2c_board_info *info); 117 struct i2c_board_info *info);
118static int f75375_probe(struct i2c_client *client, 118static int f75375_probe(struct i2c_client *client,
119 const struct i2c_device_id *id); 119 const struct i2c_device_id *id);
@@ -677,7 +677,7 @@ static int f75375_remove(struct i2c_client *client)
677} 677}
678 678
679/* Return 0 if detection is successful, -ENODEV otherwise */ 679/* Return 0 if detection is successful, -ENODEV otherwise */
680static int f75375_detect(struct i2c_client *client, int kind, 680static int f75375_detect(struct i2c_client *client,
681 struct i2c_board_info *info) 681 struct i2c_board_info *info)
682{ 682{
683 struct i2c_adapter *adapter = client->adapter; 683 struct i2c_adapter *adapter = client->adapter;
diff --git a/drivers/hwmon/fschmd.c b/drivers/hwmon/fschmd.c
index 281829cd1533..bce18e0f1d61 100644
--- a/drivers/hwmon/fschmd.c
+++ b/drivers/hwmon/fschmd.c
@@ -221,7 +221,7 @@ static const int FSCHMD_NO_TEMP_SENSORS[7] = { 3, 3, 4, 3, 5, 5, 11 };
221 221
222static int fschmd_probe(struct i2c_client *client, 222static int fschmd_probe(struct i2c_client *client,
223 const struct i2c_device_id *id); 223 const struct i2c_device_id *id);
224static int fschmd_detect(struct i2c_client *client, int kind, 224static int fschmd_detect(struct i2c_client *client,
225 struct i2c_board_info *info); 225 struct i2c_board_info *info);
226static int fschmd_remove(struct i2c_client *client); 226static int fschmd_remove(struct i2c_client *client);
227static struct fschmd_data *fschmd_update_device(struct device *dev); 227static struct fschmd_data *fschmd_update_device(struct device *dev);
@@ -1000,7 +1000,7 @@ static void fschmd_dmi_decode(const struct dmi_header *header, void *dummy)
1000 } 1000 }
1001} 1001}
1002 1002
1003static int fschmd_detect(struct i2c_client *client, int _kind, 1003static int fschmd_detect(struct i2c_client *client,
1004 struct i2c_board_info *info) 1004 struct i2c_board_info *info)
1005{ 1005{
1006 enum chips kind; 1006 enum chips kind;
diff --git a/drivers/hwmon/gl518sm.c b/drivers/hwmon/gl518sm.c
index 1d69458aa0b6..34f83c6a3f45 100644
--- a/drivers/hwmon/gl518sm.c
+++ b/drivers/hwmon/gl518sm.c
@@ -139,8 +139,7 @@ struct gl518_data {
139 139
140static int gl518_probe(struct i2c_client *client, 140static int gl518_probe(struct i2c_client *client,
141 const struct i2c_device_id *id); 141 const struct i2c_device_id *id);
142static int gl518_detect(struct i2c_client *client, int kind, 142static int gl518_detect(struct i2c_client *client, struct i2c_board_info *info);
143 struct i2c_board_info *info);
144static void gl518_init_client(struct i2c_client *client); 143static void gl518_init_client(struct i2c_client *client);
145static int gl518_remove(struct i2c_client *client); 144static int gl518_remove(struct i2c_client *client);
146static int gl518_read_value(struct i2c_client *client, u8 reg); 145static int gl518_read_value(struct i2c_client *client, u8 reg);
@@ -484,8 +483,7 @@ static const struct attribute_group gl518_group_r80 = {
484 */ 483 */
485 484
486/* Return 0 if detection is successful, -ENODEV otherwise */ 485/* Return 0 if detection is successful, -ENODEV otherwise */
487static int gl518_detect(struct i2c_client *client, int kind, 486static int gl518_detect(struct i2c_client *client, struct i2c_board_info *info)
488 struct i2c_board_info *info)
489{ 487{
490 struct i2c_adapter *adapter = client->adapter; 488 struct i2c_adapter *adapter = client->adapter;
491 int rev; 489 int rev;
diff --git a/drivers/hwmon/gl520sm.c b/drivers/hwmon/gl520sm.c
index 92b5720ceaff..d03ba692fc42 100644
--- a/drivers/hwmon/gl520sm.c
+++ b/drivers/hwmon/gl520sm.c
@@ -81,8 +81,7 @@ static const u8 GL520_REG_TEMP_MAX_HYST[] = { 0x06, 0x18 };
81 81
82static int gl520_probe(struct i2c_client *client, 82static int gl520_probe(struct i2c_client *client,
83 const struct i2c_device_id *id); 83 const struct i2c_device_id *id);
84static int gl520_detect(struct i2c_client *client, int kind, 84static int gl520_detect(struct i2c_client *client, struct i2c_board_info *info);
85 struct i2c_board_info *info);
86static void gl520_init_client(struct i2c_client *client); 85static void gl520_init_client(struct i2c_client *client);
87static int gl520_remove(struct i2c_client *client); 86static int gl520_remove(struct i2c_client *client);
88static int gl520_read_value(struct i2c_client *client, u8 reg); 87static int gl520_read_value(struct i2c_client *client, u8 reg);
@@ -681,8 +680,7 @@ static const struct attribute_group gl520_group_opt = {
681 */ 680 */
682 681
683/* Return 0 if detection is successful, -ENODEV otherwise */ 682/* Return 0 if detection is successful, -ENODEV otherwise */
684static int gl520_detect(struct i2c_client *client, int kind, 683static int gl520_detect(struct i2c_client *client, struct i2c_board_info *info)
685 struct i2c_board_info *info)
686{ 684{
687 struct i2c_adapter *adapter = client->adapter; 685 struct i2c_adapter *adapter = client->adapter;
688 686
diff --git a/drivers/hwmon/lm63.c b/drivers/hwmon/lm63.c
index 5da66ab04f74..26844fc4a66d 100644
--- a/drivers/hwmon/lm63.c
+++ b/drivers/hwmon/lm63.c
@@ -134,8 +134,7 @@ static int lm63_remove(struct i2c_client *client);
134 134
135static struct lm63_data *lm63_update_device(struct device *dev); 135static struct lm63_data *lm63_update_device(struct device *dev);
136 136
137static int lm63_detect(struct i2c_client *client, int kind, 137static int lm63_detect(struct i2c_client *client, struct i2c_board_info *info);
138 struct i2c_board_info *info);
139static void lm63_init_client(struct i2c_client *client); 138static void lm63_init_client(struct i2c_client *client);
140 139
141/* 140/*
@@ -423,7 +422,7 @@ static const struct attribute_group lm63_group_fan1 = {
423 */ 422 */
424 423
425/* Return 0 if detection is successful, -ENODEV otherwise */ 424/* Return 0 if detection is successful, -ENODEV otherwise */
426static int lm63_detect(struct i2c_client *new_client, int kind, 425static int lm63_detect(struct i2c_client *new_client,
427 struct i2c_board_info *info) 426 struct i2c_board_info *info)
428{ 427{
429 struct i2c_adapter *adapter = new_client->adapter; 428 struct i2c_adapter *adapter = new_client->adapter;
diff --git a/drivers/hwmon/lm73.c b/drivers/hwmon/lm73.c
index 0bf8b2a8e9f0..e610da9bd80c 100644
--- a/drivers/hwmon/lm73.c
+++ b/drivers/hwmon/lm73.c
@@ -151,7 +151,7 @@ static const struct i2c_device_id lm73_ids[] = {
151MODULE_DEVICE_TABLE(i2c, lm73_ids); 151MODULE_DEVICE_TABLE(i2c, lm73_ids);
152 152
153/* Return 0 if detection is successful, -ENODEV otherwise */ 153/* Return 0 if detection is successful, -ENODEV otherwise */
154static int lm73_detect(struct i2c_client *new_client, int kind, 154static int lm73_detect(struct i2c_client *new_client,
155 struct i2c_board_info *info) 155 struct i2c_board_info *info)
156{ 156{
157 struct i2c_adapter *adapter = new_client->adapter; 157 struct i2c_adapter *adapter = new_client->adapter;
diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
index e392548cccb8..8fd759d28ddf 100644
--- a/drivers/hwmon/lm75.c
+++ b/drivers/hwmon/lm75.c
@@ -234,7 +234,7 @@ static const struct i2c_device_id lm75_ids[] = {
234MODULE_DEVICE_TABLE(i2c, lm75_ids); 234MODULE_DEVICE_TABLE(i2c, lm75_ids);
235 235
236/* Return 0 if detection is successful, -ENODEV otherwise */ 236/* Return 0 if detection is successful, -ENODEV otherwise */
237static int lm75_detect(struct i2c_client *new_client, int kind, 237static int lm75_detect(struct i2c_client *new_client,
238 struct i2c_board_info *info) 238 struct i2c_board_info *info)
239{ 239{
240 struct i2c_adapter *adapter = new_client->adapter; 240 struct i2c_adapter *adapter = new_client->adapter;
diff --git a/drivers/hwmon/lm77.c b/drivers/hwmon/lm77.c
index ac067fd19482..6373ab2cd952 100644
--- a/drivers/hwmon/lm77.c
+++ b/drivers/hwmon/lm77.c
@@ -66,8 +66,7 @@ struct lm77_data {
66 66
67static int lm77_probe(struct i2c_client *client, 67static int lm77_probe(struct i2c_client *client,
68 const struct i2c_device_id *id); 68 const struct i2c_device_id *id);
69static int lm77_detect(struct i2c_client *client, int kind, 69static int lm77_detect(struct i2c_client *client, struct i2c_board_info *info);
70 struct i2c_board_info *info);
71static void lm77_init_client(struct i2c_client *client); 70static void lm77_init_client(struct i2c_client *client);
72static int lm77_remove(struct i2c_client *client); 71static int lm77_remove(struct i2c_client *client);
73static u16 lm77_read_value(struct i2c_client *client, u8 reg); 72static u16 lm77_read_value(struct i2c_client *client, u8 reg);
@@ -245,7 +244,7 @@ static const struct attribute_group lm77_group = {
245}; 244};
246 245
247/* Return 0 if detection is successful, -ENODEV otherwise */ 246/* Return 0 if detection is successful, -ENODEV otherwise */
248static int lm77_detect(struct i2c_client *new_client, int kind, 247static int lm77_detect(struct i2c_client *new_client,
249 struct i2c_board_info *info) 248 struct i2c_board_info *info)
250{ 249{
251 struct i2c_adapter *adapter = new_client->adapter; 250 struct i2c_adapter *adapter = new_client->adapter;
diff --git a/drivers/hwmon/lm78.c b/drivers/hwmon/lm78.c
index 5978291cebb3..f58850a9d9e0 100644
--- a/drivers/hwmon/lm78.c
+++ b/drivers/hwmon/lm78.c
@@ -142,7 +142,7 @@ struct lm78_data {
142}; 142};
143 143
144 144
145static int lm78_i2c_detect(struct i2c_client *client, int kind, 145static int lm78_i2c_detect(struct i2c_client *client,
146 struct i2c_board_info *info); 146 struct i2c_board_info *info);
147static int lm78_i2c_probe(struct i2c_client *client, 147static int lm78_i2c_probe(struct i2c_client *client,
148 const struct i2c_device_id *id); 148 const struct i2c_device_id *id);
@@ -558,7 +558,7 @@ static int lm78_alias_detect(struct i2c_client *client, u8 chipid)
558 return 1; 558 return 1;
559} 559}
560 560
561static int lm78_i2c_detect(struct i2c_client *client, int kind, 561static int lm78_i2c_detect(struct i2c_client *client,
562 struct i2c_board_info *info) 562 struct i2c_board_info *info)
563{ 563{
564 int i; 564 int i;
diff --git a/drivers/hwmon/lm80.c b/drivers/hwmon/lm80.c
index bcffc1899403..e3222f3d4a5e 100644
--- a/drivers/hwmon/lm80.c
+++ b/drivers/hwmon/lm80.c
@@ -133,8 +133,7 @@ struct lm80_data {
133 133
134static int lm80_probe(struct i2c_client *client, 134static int lm80_probe(struct i2c_client *client,
135 const struct i2c_device_id *id); 135 const struct i2c_device_id *id);
136static int lm80_detect(struct i2c_client *client, int kind, 136static int lm80_detect(struct i2c_client *client, struct i2c_board_info *info);
137 struct i2c_board_info *info);
138static void lm80_init_client(struct i2c_client *client); 137static void lm80_init_client(struct i2c_client *client);
139static int lm80_remove(struct i2c_client *client); 138static int lm80_remove(struct i2c_client *client);
140static struct lm80_data *lm80_update_device(struct device *dev); 139static struct lm80_data *lm80_update_device(struct device *dev);
@@ -447,8 +446,7 @@ static const struct attribute_group lm80_group = {
447}; 446};
448 447
449/* Return 0 if detection is successful, -ENODEV otherwise */ 448/* Return 0 if detection is successful, -ENODEV otherwise */
450static int lm80_detect(struct i2c_client *client, int kind, 449static int lm80_detect(struct i2c_client *client, struct i2c_board_info *info)
451 struct i2c_board_info *info)
452{ 450{
453 struct i2c_adapter *adapter = client->adapter; 451 struct i2c_adapter *adapter = client->adapter;
454 int i, cur; 452 int i, cur;
diff --git a/drivers/hwmon/lm83.c b/drivers/hwmon/lm83.c
index 08b03e6ed0b7..bfb7477cb6b3 100644
--- a/drivers/hwmon/lm83.c
+++ b/drivers/hwmon/lm83.c
@@ -118,7 +118,7 @@ static const u8 LM83_REG_W_HIGH[] = {
118 * Functions declaration 118 * Functions declaration
119 */ 119 */
120 120
121static int lm83_detect(struct i2c_client *new_client, int kind, 121static int lm83_detect(struct i2c_client *new_client,
122 struct i2c_board_info *info); 122 struct i2c_board_info *info);
123static int lm83_probe(struct i2c_client *client, 123static int lm83_probe(struct i2c_client *client,
124 const struct i2c_device_id *id); 124 const struct i2c_device_id *id);
@@ -291,7 +291,7 @@ static const struct attribute_group lm83_group_opt = {
291 */ 291 */
292 292
293/* Return 0 if detection is successful, -ENODEV otherwise */ 293/* Return 0 if detection is successful, -ENODEV otherwise */
294static int lm83_detect(struct i2c_client *new_client, int kind, 294static int lm83_detect(struct i2c_client *new_client,
295 struct i2c_board_info *info) 295 struct i2c_board_info *info)
296{ 296{
297 struct i2c_adapter *adapter = new_client->adapter; 297 struct i2c_adapter *adapter = new_client->adapter;
diff --git a/drivers/hwmon/lm85.c b/drivers/hwmon/lm85.c
index d56da2e74708..f5fc45ac6fe5 100644
--- a/drivers/hwmon/lm85.c
+++ b/drivers/hwmon/lm85.c
@@ -323,8 +323,7 @@ struct lm85_data {
323 struct lm85_zone zone[3]; 323 struct lm85_zone zone[3];
324}; 324};
325 325
326static int lm85_detect(struct i2c_client *client, int kind, 326static int lm85_detect(struct i2c_client *client, struct i2c_board_info *info);
327 struct i2c_board_info *info);
328static int lm85_probe(struct i2c_client *client, 327static int lm85_probe(struct i2c_client *client,
329 const struct i2c_device_id *id); 328 const struct i2c_device_id *id);
330static int lm85_remove(struct i2c_client *client); 329static int lm85_remove(struct i2c_client *client);
@@ -1156,8 +1155,7 @@ static int lm85_is_fake(struct i2c_client *client)
1156} 1155}
1157 1156
1158/* Return 0 if detection is successful, -ENODEV otherwise */ 1157/* Return 0 if detection is successful, -ENODEV otherwise */
1159static int lm85_detect(struct i2c_client *client, int kind, 1158static int lm85_detect(struct i2c_client *client, struct i2c_board_info *info)
1160 struct i2c_board_info *info)
1161{ 1159{
1162 struct i2c_adapter *adapter = client->adapter; 1160 struct i2c_adapter *adapter = client->adapter;
1163 int address = client->addr; 1161 int address = client->addr;
diff --git a/drivers/hwmon/lm87.c b/drivers/hwmon/lm87.c
index 4929b1815eee..d545b8596b05 100644
--- a/drivers/hwmon/lm87.c
+++ b/drivers/hwmon/lm87.c
@@ -158,7 +158,7 @@ static u8 LM87_REG_TEMP_LOW[3] = { 0x3A, 0x38, 0x2C };
158 158
159static int lm87_probe(struct i2c_client *client, 159static int lm87_probe(struct i2c_client *client,
160 const struct i2c_device_id *id); 160 const struct i2c_device_id *id);
161static int lm87_detect(struct i2c_client *new_client, int kind, 161static int lm87_detect(struct i2c_client *new_client,
162 struct i2c_board_info *info); 162 struct i2c_board_info *info);
163static void lm87_init_client(struct i2c_client *client); 163static void lm87_init_client(struct i2c_client *client);
164static int lm87_remove(struct i2c_client *client); 164static int lm87_remove(struct i2c_client *client);
@@ -662,7 +662,7 @@ static const struct attribute_group lm87_group_opt = {
662}; 662};
663 663
664/* Return 0 if detection is successful, -ENODEV otherwise */ 664/* Return 0 if detection is successful, -ENODEV otherwise */
665static int lm87_detect(struct i2c_client *new_client, int kind, 665static int lm87_detect(struct i2c_client *new_client,
666 struct i2c_board_info *info) 666 struct i2c_board_info *info)
667{ 667{
668 struct i2c_adapter *adapter = new_client->adapter; 668 struct i2c_adapter *adapter = new_client->adapter;
diff --git a/drivers/hwmon/lm90.c b/drivers/hwmon/lm90.c
index b7c905f50ed4..3acbacadac77 100644
--- a/drivers/hwmon/lm90.c
+++ b/drivers/hwmon/lm90.c
@@ -152,8 +152,7 @@ I2C_CLIENT_INSMOD_8(lm90, adm1032, lm99, lm86, max6657, adt7461, max6680,
152 * Functions declaration 152 * Functions declaration
153 */ 153 */
154 154
155static int lm90_detect(struct i2c_client *client, int kind, 155static int lm90_detect(struct i2c_client *client, struct i2c_board_info *info);
156 struct i2c_board_info *info);
157static int lm90_probe(struct i2c_client *client, 156static int lm90_probe(struct i2c_client *client,
158 const struct i2c_device_id *id); 157 const struct i2c_device_id *id);
159static void lm90_init_client(struct i2c_client *client); 158static void lm90_init_client(struct i2c_client *client);
@@ -656,7 +655,7 @@ static int lm90_read_reg(struct i2c_client* client, u8 reg, u8 *value)
656} 655}
657 656
658/* Return 0 if detection is successful, -ENODEV otherwise */ 657/* Return 0 if detection is successful, -ENODEV otherwise */
659static int lm90_detect(struct i2c_client *new_client, int kind, 658static int lm90_detect(struct i2c_client *new_client,
660 struct i2c_board_info *info) 659 struct i2c_board_info *info)
661{ 660{
662 struct i2c_adapter *adapter = new_client->adapter; 661 struct i2c_adapter *adapter = new_client->adapter;
diff --git a/drivers/hwmon/lm92.c b/drivers/hwmon/lm92.c
index 47ac698709dc..da354222468d 100644
--- a/drivers/hwmon/lm92.c
+++ b/drivers/hwmon/lm92.c
@@ -319,7 +319,7 @@ static const struct attribute_group lm92_group = {
319}; 319};
320 320
321/* Return 0 if detection is successful, -ENODEV otherwise */ 321/* Return 0 if detection is successful, -ENODEV otherwise */
322static int lm92_detect(struct i2c_client *new_client, int kind, 322static int lm92_detect(struct i2c_client *new_client,
323 struct i2c_board_info *info) 323 struct i2c_board_info *info)
324{ 324{
325 struct i2c_adapter *adapter = new_client->adapter; 325 struct i2c_adapter *adapter = new_client->adapter;
diff --git a/drivers/hwmon/lm93.c b/drivers/hwmon/lm93.c
index 124dd7cea54c..7b9c97b72eb8 100644
--- a/drivers/hwmon/lm93.c
+++ b/drivers/hwmon/lm93.c
@@ -2501,8 +2501,7 @@ static void lm93_init_client(struct i2c_client *client)
2501} 2501}
2502 2502
2503/* Return 0 if detection is successful, -ENODEV otherwise */ 2503/* Return 0 if detection is successful, -ENODEV otherwise */
2504static int lm93_detect(struct i2c_client *client, int kind, 2504static int lm93_detect(struct i2c_client *client, struct i2c_board_info *info)
2505 struct i2c_board_info *info)
2506{ 2505{
2507 struct i2c_adapter *adapter = client->adapter; 2506 struct i2c_adapter *adapter = client->adapter;
2508 int mfr, ver; 2507 int mfr, ver;
diff --git a/drivers/hwmon/lm95241.c b/drivers/hwmon/lm95241.c
index 906b896cf1d0..05ede4137e22 100644
--- a/drivers/hwmon/lm95241.c
+++ b/drivers/hwmon/lm95241.c
@@ -310,7 +310,7 @@ static const struct attribute_group lm95241_group = {
310}; 310};
311 311
312/* Return 0 if detection is successful, -ENODEV otherwise */ 312/* Return 0 if detection is successful, -ENODEV otherwise */
313static int lm95241_detect(struct i2c_client *new_client, int kind, 313static int lm95241_detect(struct i2c_client *new_client,
314 struct i2c_board_info *info) 314 struct i2c_board_info *info)
315{ 315{
316 struct i2c_adapter *adapter = new_client->adapter; 316 struct i2c_adapter *adapter = new_client->adapter;
diff --git a/drivers/hwmon/max1619.c b/drivers/hwmon/max1619.c
index 7fcf5ff89e7f..4baf94efd372 100644
--- a/drivers/hwmon/max1619.c
+++ b/drivers/hwmon/max1619.c
@@ -88,7 +88,7 @@ static int temp_to_reg(int val)
88 88
89static int max1619_probe(struct i2c_client *client, 89static int max1619_probe(struct i2c_client *client,
90 const struct i2c_device_id *id); 90 const struct i2c_device_id *id);
91static int max1619_detect(struct i2c_client *client, int kind, 91static int max1619_detect(struct i2c_client *client,
92 struct i2c_board_info *info); 92 struct i2c_board_info *info);
93static void max1619_init_client(struct i2c_client *client); 93static void max1619_init_client(struct i2c_client *client);
94static int max1619_remove(struct i2c_client *client); 94static int max1619_remove(struct i2c_client *client);
@@ -226,7 +226,7 @@ static const struct attribute_group max1619_group = {
226 */ 226 */
227 227
228/* Return 0 if detection is successful, -ENODEV otherwise */ 228/* Return 0 if detection is successful, -ENODEV otherwise */
229static int max1619_detect(struct i2c_client *client, int kind, 229static int max1619_detect(struct i2c_client *client,
230 struct i2c_board_info *info) 230 struct i2c_board_info *info)
231{ 231{
232 struct i2c_adapter *adapter = client->adapter; 232 struct i2c_adapter *adapter = client->adapter;
diff --git a/drivers/hwmon/max6650.c b/drivers/hwmon/max6650.c
index 1da561e0cb37..fd5d1acfcc95 100644
--- a/drivers/hwmon/max6650.c
+++ b/drivers/hwmon/max6650.c
@@ -116,7 +116,7 @@ I2C_CLIENT_INSMOD_1(max6650);
116 116
117static int max6650_probe(struct i2c_client *client, 117static int max6650_probe(struct i2c_client *client,
118 const struct i2c_device_id *id); 118 const struct i2c_device_id *id);
119static int max6650_detect(struct i2c_client *client, int kind, 119static int max6650_detect(struct i2c_client *client,
120 struct i2c_board_info *info); 120 struct i2c_board_info *info);
121static int max6650_init_client(struct i2c_client *client); 121static int max6650_init_client(struct i2c_client *client);
122static int max6650_remove(struct i2c_client *client); 122static int max6650_remove(struct i2c_client *client);
@@ -528,7 +528,7 @@ static struct attribute_group max6650_attr_grp = {
528 */ 528 */
529 529
530/* Return 0 if detection is successful, -ENODEV otherwise */ 530/* Return 0 if detection is successful, -ENODEV otherwise */
531static int max6650_detect(struct i2c_client *client, int kind, 531static int max6650_detect(struct i2c_client *client,
532 struct i2c_board_info *info) 532 struct i2c_board_info *info)
533{ 533{
534 struct i2c_adapter *adapter = client->adapter; 534 struct i2c_adapter *adapter = client->adapter;
diff --git a/drivers/hwmon/pcf8591.c b/drivers/hwmon/pcf8591.c
index 1d7ffebd679d..4355aada01f2 100644
--- a/drivers/hwmon/pcf8591.c
+++ b/drivers/hwmon/pcf8591.c
@@ -169,7 +169,7 @@ static const struct attribute_group pcf8591_attr_group_opt = {
169 */ 169 */
170 170
171/* Return 0 if detection is successful, -ENODEV otherwise */ 171/* Return 0 if detection is successful, -ENODEV otherwise */
172static int pcf8591_detect(struct i2c_client *client, int kind, 172static int pcf8591_detect(struct i2c_client *client,
173 struct i2c_board_info *info) 173 struct i2c_board_info *info)
174{ 174{
175 struct i2c_adapter *adapter = client->adapter; 175 struct i2c_adapter *adapter = client->adapter;
diff --git a/drivers/hwmon/smsc47m192.c b/drivers/hwmon/smsc47m192.c
index 4d88c045781c..1683fc76759f 100644
--- a/drivers/hwmon/smsc47m192.c
+++ b/drivers/hwmon/smsc47m192.c
@@ -115,7 +115,7 @@ struct smsc47m192_data {
115 115
116static int smsc47m192_probe(struct i2c_client *client, 116static int smsc47m192_probe(struct i2c_client *client,
117 const struct i2c_device_id *id); 117 const struct i2c_device_id *id);
118static int smsc47m192_detect(struct i2c_client *client, int kind, 118static int smsc47m192_detect(struct i2c_client *client,
119 struct i2c_board_info *info); 119 struct i2c_board_info *info);
120static int smsc47m192_remove(struct i2c_client *client); 120static int smsc47m192_remove(struct i2c_client *client);
121static struct smsc47m192_data *smsc47m192_update_device(struct device *dev); 121static struct smsc47m192_data *smsc47m192_update_device(struct device *dev);
@@ -481,7 +481,7 @@ static void smsc47m192_init_client(struct i2c_client *client)
481} 481}
482 482
483/* Return 0 if detection is successful, -ENODEV otherwise */ 483/* Return 0 if detection is successful, -ENODEV otherwise */
484static int smsc47m192_detect(struct i2c_client *client, int kind, 484static int smsc47m192_detect(struct i2c_client *client,
485 struct i2c_board_info *info) 485 struct i2c_board_info *info)
486{ 486{
487 struct i2c_adapter *adapter = client->adapter; 487 struct i2c_adapter *adapter = client->adapter;
diff --git a/drivers/hwmon/thmc50.c b/drivers/hwmon/thmc50.c
index 4b793849c738..02ac0d4323a4 100644
--- a/drivers/hwmon/thmc50.c
+++ b/drivers/hwmon/thmc50.c
@@ -84,7 +84,7 @@ struct thmc50_data {
84 u8 alarms; 84 u8 alarms;
85}; 85};
86 86
87static int thmc50_detect(struct i2c_client *client, int kind, 87static int thmc50_detect(struct i2c_client *client,
88 struct i2c_board_info *info); 88 struct i2c_board_info *info);
89static int thmc50_probe(struct i2c_client *client, 89static int thmc50_probe(struct i2c_client *client,
90 const struct i2c_device_id *id); 90 const struct i2c_device_id *id);
@@ -286,7 +286,7 @@ static const struct attribute_group temp3_group = {
286}; 286};
287 287
288/* Return 0 if detection is successful, -ENODEV otherwise */ 288/* Return 0 if detection is successful, -ENODEV otherwise */
289static int thmc50_detect(struct i2c_client *client, int kind, 289static int thmc50_detect(struct i2c_client *client,
290 struct i2c_board_info *info) 290 struct i2c_board_info *info)
291{ 291{
292 unsigned company; 292 unsigned company;
diff --git a/drivers/hwmon/tmp401.c b/drivers/hwmon/tmp401.c
index ee9673467c4a..7cf1d541a5fa 100644
--- a/drivers/hwmon/tmp401.c
+++ b/drivers/hwmon/tmp401.c
@@ -98,7 +98,7 @@ static const u8 TMP411_TEMP_HIGHEST_LSB[2] = { 0x33, 0x37 };
98 98
99static int tmp401_probe(struct i2c_client *client, 99static int tmp401_probe(struct i2c_client *client,
100 const struct i2c_device_id *id); 100 const struct i2c_device_id *id);
101static int tmp401_detect(struct i2c_client *client, int kind, 101static int tmp401_detect(struct i2c_client *client,
102 struct i2c_board_info *info); 102 struct i2c_board_info *info);
103static int tmp401_remove(struct i2c_client *client); 103static int tmp401_remove(struct i2c_client *client);
104static struct tmp401_data *tmp401_update_device(struct device *dev); 104static struct tmp401_data *tmp401_update_device(struct device *dev);
@@ -488,7 +488,7 @@ static void tmp401_init_client(struct i2c_client *client)
488 i2c_smbus_write_byte_data(client, TMP401_CONFIG_WRITE, config); 488 i2c_smbus_write_byte_data(client, TMP401_CONFIG_WRITE, config);
489} 489}
490 490
491static int tmp401_detect(struct i2c_client *client, int _kind, 491static int tmp401_detect(struct i2c_client *client,
492 struct i2c_board_info *info) 492 struct i2c_board_info *info)
493{ 493{
494 enum chips kind; 494 enum chips kind;
diff --git a/drivers/hwmon/tmp421.c b/drivers/hwmon/tmp421.c
index bb5464a289ca..34eb34c548ff 100644
--- a/drivers/hwmon/tmp421.c
+++ b/drivers/hwmon/tmp421.c
@@ -223,7 +223,7 @@ static int tmp421_init_client(struct i2c_client *client)
223 return 0; 223 return 0;
224} 224}
225 225
226static int tmp421_detect(struct i2c_client *client, int _kind, 226static int tmp421_detect(struct i2c_client *client,
227 struct i2c_board_info *info) 227 struct i2c_board_info *info)
228{ 228{
229 enum chips kind; 229 enum chips kind;
diff --git a/drivers/hwmon/w83781d.c b/drivers/hwmon/w83781d.c
index 7ab7967da0a0..44704d2dee63 100644
--- a/drivers/hwmon/w83781d.c
+++ b/drivers/hwmon/w83781d.c
@@ -1051,8 +1051,7 @@ w83781d_create_files(struct device *dev, int kind, int is_isa)
1051 1051
1052/* Return 0 if detection is successful, -ENODEV otherwise */ 1052/* Return 0 if detection is successful, -ENODEV otherwise */
1053static int 1053static int
1054w83781d_detect(struct i2c_client *client, int kind, 1054w83781d_detect(struct i2c_client *client, struct i2c_board_info *info)
1055 struct i2c_board_info *info)
1056{ 1055{
1057 int val1, val2; 1056 int val1, val2;
1058 struct w83781d_data *isa = w83781d_data_if_isa(); 1057 struct w83781d_data *isa = w83781d_data_if_isa();
diff --git a/drivers/hwmon/w83791d.c b/drivers/hwmon/w83791d.c
index 0410bf12c521..b3e91b6e651a 100644
--- a/drivers/hwmon/w83791d.c
+++ b/drivers/hwmon/w83791d.c
@@ -326,7 +326,7 @@ struct w83791d_data {
326 326
327static int w83791d_probe(struct i2c_client *client, 327static int w83791d_probe(struct i2c_client *client,
328 const struct i2c_device_id *id); 328 const struct i2c_device_id *id);
329static int w83791d_detect(struct i2c_client *client, int kind, 329static int w83791d_detect(struct i2c_client *client,
330 struct i2c_board_info *info); 330 struct i2c_board_info *info);
331static int w83791d_remove(struct i2c_client *client); 331static int w83791d_remove(struct i2c_client *client);
332 332
@@ -1259,7 +1259,7 @@ error_sc_0:
1259 1259
1260 1260
1261/* Return 0 if detection is successful, -ENODEV otherwise */ 1261/* Return 0 if detection is successful, -ENODEV otherwise */
1262static int w83791d_detect(struct i2c_client *client, int kind, 1262static int w83791d_detect(struct i2c_client *client,
1263 struct i2c_board_info *info) 1263 struct i2c_board_info *info)
1264{ 1264{
1265 struct i2c_adapter *adapter = client->adapter; 1265 struct i2c_adapter *adapter = client->adapter;
diff --git a/drivers/hwmon/w83792d.c b/drivers/hwmon/w83792d.c
index 38978851333f..03b836cdafa6 100644
--- a/drivers/hwmon/w83792d.c
+++ b/drivers/hwmon/w83792d.c
@@ -302,7 +302,7 @@ struct w83792d_data {
302 302
303static int w83792d_probe(struct i2c_client *client, 303static int w83792d_probe(struct i2c_client *client,
304 const struct i2c_device_id *id); 304 const struct i2c_device_id *id);
305static int w83792d_detect(struct i2c_client *client, int kind, 305static int w83792d_detect(struct i2c_client *client,
306 struct i2c_board_info *info); 306 struct i2c_board_info *info);
307static int w83792d_remove(struct i2c_client *client); 307static int w83792d_remove(struct i2c_client *client);
308static struct w83792d_data *w83792d_update_device(struct device *dev); 308static struct w83792d_data *w83792d_update_device(struct device *dev);
@@ -1263,7 +1263,7 @@ static const struct attribute_group w83792d_group = {
1263 1263
1264/* Return 0 if detection is successful, -ENODEV otherwise */ 1264/* Return 0 if detection is successful, -ENODEV otherwise */
1265static int 1265static int
1266w83792d_detect(struct i2c_client *client, int kind, struct i2c_board_info *info) 1266w83792d_detect(struct i2c_client *client, struct i2c_board_info *info)
1267{ 1267{
1268 struct i2c_adapter *adapter = client->adapter; 1268 struct i2c_adapter *adapter = client->adapter;
1269 int val1, val2; 1269 int val1, val2;
diff --git a/drivers/hwmon/w83793.c b/drivers/hwmon/w83793.c
index 80a2191bf127..acf35e6e2ab9 100644
--- a/drivers/hwmon/w83793.c
+++ b/drivers/hwmon/w83793.c
@@ -230,7 +230,7 @@ static u8 w83793_read_value(struct i2c_client *client, u16 reg);
230static int w83793_write_value(struct i2c_client *client, u16 reg, u8 value); 230static int w83793_write_value(struct i2c_client *client, u16 reg, u8 value);
231static int w83793_probe(struct i2c_client *client, 231static int w83793_probe(struct i2c_client *client,
232 const struct i2c_device_id *id); 232 const struct i2c_device_id *id);
233static int w83793_detect(struct i2c_client *client, int kind, 233static int w83793_detect(struct i2c_client *client,
234 struct i2c_board_info *info); 234 struct i2c_board_info *info);
235static int w83793_remove(struct i2c_client *client); 235static int w83793_remove(struct i2c_client *client);
236static void w83793_init_client(struct i2c_client *client); 236static void w83793_init_client(struct i2c_client *client);
@@ -1161,7 +1161,7 @@ ERROR_SC_0:
1161} 1161}
1162 1162
1163/* Return 0 if detection is successful, -ENODEV otherwise */ 1163/* Return 0 if detection is successful, -ENODEV otherwise */
1164static int w83793_detect(struct i2c_client *client, int kind, 1164static int w83793_detect(struct i2c_client *client,
1165 struct i2c_board_info *info) 1165 struct i2c_board_info *info)
1166{ 1166{
1167 u8 tmp, bank, chip_id; 1167 u8 tmp, bank, chip_id;
diff --git a/drivers/hwmon/w83l785ts.c b/drivers/hwmon/w83l785ts.c
index 9b6c4c10fba7..ec6e4b7fb741 100644
--- a/drivers/hwmon/w83l785ts.c
+++ b/drivers/hwmon/w83l785ts.c
@@ -83,7 +83,7 @@ I2C_CLIENT_INSMOD_1(w83l785ts);
83 83
84static int w83l785ts_probe(struct i2c_client *client, 84static int w83l785ts_probe(struct i2c_client *client,
85 const struct i2c_device_id *id); 85 const struct i2c_device_id *id);
86static int w83l785ts_detect(struct i2c_client *client, int kind, 86static int w83l785ts_detect(struct i2c_client *client,
87 struct i2c_board_info *info); 87 struct i2c_board_info *info);
88static int w83l785ts_remove(struct i2c_client *client); 88static int w83l785ts_remove(struct i2c_client *client);
89static u8 w83l785ts_read_value(struct i2c_client *client, u8 reg, u8 defval); 89static u8 w83l785ts_read_value(struct i2c_client *client, u8 reg, u8 defval);
@@ -146,7 +146,7 @@ static SENSOR_DEVICE_ATTR(temp1_max, S_IRUGO, show_temp, NULL, 1);
146 */ 146 */
147 147
148/* Return 0 if detection is successful, -ENODEV otherwise */ 148/* Return 0 if detection is successful, -ENODEV otherwise */
149static int w83l785ts_detect(struct i2c_client *client, int kind, 149static int w83l785ts_detect(struct i2c_client *client,
150 struct i2c_board_info *info) 150 struct i2c_board_info *info)
151{ 151{
152 struct i2c_adapter *adapter = client->adapter; 152 struct i2c_adapter *adapter = client->adapter;
diff --git a/drivers/hwmon/w83l786ng.c b/drivers/hwmon/w83l786ng.c
index 27da7d2b15fb..12a5fd67bee0 100644
--- a/drivers/hwmon/w83l786ng.c
+++ b/drivers/hwmon/w83l786ng.c
@@ -147,7 +147,7 @@ struct w83l786ng_data {
147 147
148static int w83l786ng_probe(struct i2c_client *client, 148static int w83l786ng_probe(struct i2c_client *client,
149 const struct i2c_device_id *id); 149 const struct i2c_device_id *id);
150static int w83l786ng_detect(struct i2c_client *client, int kind, 150static int w83l786ng_detect(struct i2c_client *client,
151 struct i2c_board_info *info); 151 struct i2c_board_info *info);
152static int w83l786ng_remove(struct i2c_client *client); 152static int w83l786ng_remove(struct i2c_client *client);
153static void w83l786ng_init_client(struct i2c_client *client); 153static void w83l786ng_init_client(struct i2c_client *client);
@@ -586,8 +586,7 @@ static const struct attribute_group w83l786ng_group = {
586}; 586};
587 587
588static int 588static int
589w83l786ng_detect(struct i2c_client *client, int kind, 589w83l786ng_detect(struct i2c_client *client, struct i2c_board_info *info)
590 struct i2c_board_info *info)
591{ 590{
592 struct i2c_adapter *adapter = client->adapter; 591 struct i2c_adapter *adapter = client->adapter;
593 u16 man_id; 592 u16 man_id;
diff --git a/drivers/i2c/i2c-core.c b/drivers/i2c/i2c-core.c
index 4f34823e86b1..c1047d644d8f 100644
--- a/drivers/i2c/i2c-core.c
+++ b/drivers/i2c/i2c-core.c
@@ -1184,7 +1184,7 @@ static int i2c_detect_address(struct i2c_client *temp_client,
1184 /* Finally call the custom detection function */ 1184 /* Finally call the custom detection function */
1185 memset(&info, 0, sizeof(struct i2c_board_info)); 1185 memset(&info, 0, sizeof(struct i2c_board_info));
1186 info.addr = addr; 1186 info.addr = addr;
1187 err = driver->detect(temp_client, -1, &info); 1187 err = driver->detect(temp_client, &info);
1188 if (err) { 1188 if (err) {
1189 /* -ENODEV is returned if the detection fails. We catch it 1189 /* -ENODEV is returned if the detection fails. We catch it
1190 here as this isn't an error. */ 1190 here as this isn't an error. */
diff --git a/drivers/misc/eeprom/eeprom.c b/drivers/misc/eeprom/eeprom.c
index 2c27193aeaa0..2c428f464539 100644
--- a/drivers/misc/eeprom/eeprom.c
+++ b/drivers/misc/eeprom/eeprom.c
@@ -135,8 +135,7 @@ static struct bin_attribute eeprom_attr = {
135}; 135};
136 136
137/* Return 0 if detection is successful, -ENODEV otherwise */ 137/* Return 0 if detection is successful, -ENODEV otherwise */
138static int eeprom_detect(struct i2c_client *client, int kind, 138static int eeprom_detect(struct i2c_client *client, struct i2c_board_info *info)
139 struct i2c_board_info *info)
140{ 139{
141 struct i2c_adapter *adapter = client->adapter; 140 struct i2c_adapter *adapter = client->adapter;
142 141
diff --git a/drivers/misc/ics932s401.c b/drivers/misc/ics932s401.c
index 4bb7a3af9ad9..75097ec43edd 100644
--- a/drivers/misc/ics932s401.c
+++ b/drivers/misc/ics932s401.c
@@ -106,7 +106,7 @@ struct ics932s401_data {
106 106
107static int ics932s401_probe(struct i2c_client *client, 107static int ics932s401_probe(struct i2c_client *client,
108 const struct i2c_device_id *id); 108 const struct i2c_device_id *id);
109static int ics932s401_detect(struct i2c_client *client, int kind, 109static int ics932s401_detect(struct i2c_client *client,
110 struct i2c_board_info *info); 110 struct i2c_board_info *info);
111static int ics932s401_remove(struct i2c_client *client); 111static int ics932s401_remove(struct i2c_client *client);
112 112
@@ -413,7 +413,7 @@ static ssize_t show_spread(struct device *dev,
413} 413}
414 414
415/* Return 0 if detection is successful, -ENODEV otherwise */ 415/* Return 0 if detection is successful, -ENODEV otherwise */
416static int ics932s401_detect(struct i2c_client *client, int kind, 416static int ics932s401_detect(struct i2c_client *client,
417 struct i2c_board_info *info) 417 struct i2c_board_info *info)
418{ 418{
419 struct i2c_adapter *adapter = client->adapter; 419 struct i2c_adapter *adapter = client->adapter;
diff --git a/include/linux/i2c.h b/include/linux/i2c.h
index 419ab546b266..f6f2c080ba67 100644
--- a/include/linux/i2c.h
+++ b/include/linux/i2c.h
@@ -161,7 +161,7 @@ struct i2c_driver {
161 const struct i2c_device_id *id_table; 161 const struct i2c_device_id *id_table;
162 162
163 /* Device detection callback for automatic device creation */ 163 /* Device detection callback for automatic device creation */
164 int (*detect)(struct i2c_client *, int kind, struct i2c_board_info *); 164 int (*detect)(struct i2c_client *, struct i2c_board_info *);
165 const struct i2c_client_address_data *address_data; 165 const struct i2c_client_address_data *address_data;
166 struct list_head clients; 166 struct list_head clients;
167}; 167};