diff options
author | Jean Delvare <khali@linux-fr.org> | 2009-12-14 15:17:23 -0500 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2009-12-14 15:17:23 -0500 |
commit | 310ec79210d754afe51e2e4a983e846b60179abd (patch) | |
tree | 98e592b60162cd55e367dc19ba3553617a45b0be /drivers/hwmon | |
parent | f40542532e96dda5506eb76badea322f2ae4731c (diff) |
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>
Diffstat (limited to 'drivers/hwmon')
45 files changed, 79 insertions, 94 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 | ||
98 | static int adm1021_probe(struct i2c_client *client, | 98 | static int adm1021_probe(struct i2c_client *client, |
99 | const struct i2c_device_id *id); | 99 | const struct i2c_device_id *id); |
100 | static int adm1021_detect(struct i2c_client *client, int kind, | 100 | static int adm1021_detect(struct i2c_client *client, |
101 | struct i2c_board_info *info); | 101 | struct i2c_board_info *info); |
102 | static void adm1021_init_client(struct i2c_client *client); | 102 | static void adm1021_init_client(struct i2c_client *client); |
103 | static int adm1021_remove(struct i2c_client *client); | 103 | static 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 */ |
287 | static int adm1021_detect(struct i2c_client *client, int kind, | 287 | static 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 | ||
112 | static int adm1025_probe(struct i2c_client *client, | 112 | static int adm1025_probe(struct i2c_client *client, |
113 | const struct i2c_device_id *id); | 113 | const struct i2c_device_id *id); |
114 | static int adm1025_detect(struct i2c_client *client, int kind, | 114 | static int adm1025_detect(struct i2c_client *client, |
115 | struct i2c_board_info *info); | 115 | struct i2c_board_info *info); |
116 | static void adm1025_init_client(struct i2c_client *client); | 116 | static void adm1025_init_client(struct i2c_client *client); |
117 | static int adm1025_remove(struct i2c_client *client); | 117 | static 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 */ |
412 | static int adm1025_detect(struct i2c_client *client, int kind, | 412 | static 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 | ||
294 | static int adm1026_probe(struct i2c_client *client, | 294 | static int adm1026_probe(struct i2c_client *client, |
295 | const struct i2c_device_id *id); | 295 | const struct i2c_device_id *id); |
296 | static int adm1026_detect(struct i2c_client *client, int kind, | 296 | static int adm1026_detect(struct i2c_client *client, |
297 | struct i2c_board_info *info); | 297 | struct i2c_board_info *info); |
298 | static int adm1026_remove(struct i2c_client *client); | 298 | static int adm1026_remove(struct i2c_client *client); |
299 | static int adm1026_read_value(struct i2c_client *client, u8 reg); | 299 | static 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 */ |
1653 | static int adm1026_detect(struct i2c_client *client, int kind, | 1653 | static 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 | ||
118 | static int adm1029_probe(struct i2c_client *client, | 118 | static int adm1029_probe(struct i2c_client *client, |
119 | const struct i2c_device_id *id); | 119 | const struct i2c_device_id *id); |
120 | static int adm1029_detect(struct i2c_client *client, int kind, | 120 | static int adm1029_detect(struct i2c_client *client, |
121 | struct i2c_board_info *info); | 121 | struct i2c_board_info *info); |
122 | static int adm1029_remove(struct i2c_client *client); | 122 | static int adm1029_remove(struct i2c_client *client); |
123 | static struct adm1029_data *adm1029_update_device(struct device *dev); | 123 | static 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 */ |
300 | static int adm1029_detect(struct i2c_client *client, int kind, | 300 | static 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 | ||
103 | static int adm1031_probe(struct i2c_client *client, | 103 | static int adm1031_probe(struct i2c_client *client, |
104 | const struct i2c_device_id *id); | 104 | const struct i2c_device_id *id); |
105 | static int adm1031_detect(struct i2c_client *client, int kind, | 105 | static int adm1031_detect(struct i2c_client *client, |
106 | struct i2c_board_info *info); | 106 | struct i2c_board_info *info); |
107 | static void adm1031_init_client(struct i2c_client *client); | 107 | static void adm1031_init_client(struct i2c_client *client); |
108 | static int adm1031_remove(struct i2c_client *client); | 108 | static 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 */ |
816 | static int adm1031_detect(struct i2c_client *client, int kind, | 816 | static 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 | ||
133 | static int adm9240_probe(struct i2c_client *client, | 133 | static int adm9240_probe(struct i2c_client *client, |
134 | const struct i2c_device_id *id); | 134 | const struct i2c_device_id *id); |
135 | static int adm9240_detect(struct i2c_client *client, int kind, | 135 | static int adm9240_detect(struct i2c_client *client, |
136 | struct i2c_board_info *info); | 136 | struct i2c_board_info *info); |
137 | static void adm9240_init_client(struct i2c_client *client); | 137 | static void adm9240_init_client(struct i2c_client *client); |
138 | static int adm9240_remove(struct i2c_client *client); | 138 | static 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 */ |
548 | static int adm9240_detect(struct i2c_client *new_client, int kind, | 548 | static 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 */ |
75 | static int ads7828_detect(struct i2c_client *client, int kind, | 75 | static int ads7828_detect(struct i2c_client *client, |
76 | struct i2c_board_info *info); | 76 | struct i2c_board_info *info); |
77 | static int ads7828_probe(struct i2c_client *client, | 77 | static 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 */ |
190 | static int ads7828_detect(struct i2c_client *client, int kind, | 190 | static 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 | ||
238 | static int adt7462_probe(struct i2c_client *client, | 238 | static int adt7462_probe(struct i2c_client *client, |
239 | const struct i2c_device_id *id); | 239 | const struct i2c_device_id *id); |
240 | static int adt7462_detect(struct i2c_client *client, int kind, | 240 | static int adt7462_detect(struct i2c_client *client, |
241 | struct i2c_board_info *info); | 241 | struct i2c_board_info *info); |
242 | static int adt7462_remove(struct i2c_client *client); | 242 | static 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 */ |
1905 | static int adt7462_detect(struct i2c_client *client, int kind, | 1905 | static 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 | ||
178 | static int adt7470_probe(struct i2c_client *client, | 178 | static int adt7470_probe(struct i2c_client *client, |
179 | const struct i2c_device_id *id); | 179 | const struct i2c_device_id *id); |
180 | static int adt7470_detect(struct i2c_client *client, int kind, | 180 | static int adt7470_detect(struct i2c_client *client, |
181 | struct i2c_board_info *info); | 181 | struct i2c_board_info *info); |
182 | static int adt7470_remove(struct i2c_client *client); | 182 | static 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 */ |
1228 | static int adt7470_detect(struct i2c_client *client, int kind, | 1228 | static 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 | ||
167 | static int adt7473_probe(struct i2c_client *client, | 167 | static int adt7473_probe(struct i2c_client *client, |
168 | const struct i2c_device_id *id); | 168 | const struct i2c_device_id *id); |
169 | static int adt7473_detect(struct i2c_client *client, int kind, | 169 | static int adt7473_detect(struct i2c_client *client, |
170 | struct i2c_board_info *info); | 170 | struct i2c_board_info *info); |
171 | static int adt7473_remove(struct i2c_client *client); | 171 | static 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 */ |
1088 | static int adt7473_detect(struct i2c_client *client, int kind, | 1088 | static 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 }; | |||
1172 | static struct attribute_group in5_attr_group = { .attrs = in5_attrs }; | 1172 | static struct attribute_group in5_attr_group = { .attrs = in5_attrs }; |
1173 | static struct attribute_group vid_attr_group = { .attrs = vid_attrs }; | 1173 | static struct attribute_group vid_attr_group = { .attrs = vid_attrs }; |
1174 | 1174 | ||
1175 | static int adt7475_detect(struct i2c_client *client, int kind, | 1175 | static 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 | ||
210 | static int asb100_probe(struct i2c_client *client, | 210 | static int asb100_probe(struct i2c_client *client, |
211 | const struct i2c_device_id *id); | 211 | const struct i2c_device_id *id); |
212 | static int asb100_detect(struct i2c_client *client, int kind, | 212 | static int asb100_detect(struct i2c_client *client, |
213 | struct i2c_board_info *info); | 213 | struct i2c_board_info *info); |
214 | static int asb100_remove(struct i2c_client *client); | 214 | static int asb100_remove(struct i2c_client *client); |
215 | static struct asb100_data *asb100_update_device(struct device *dev); | 215 | static 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 */ |
700 | static int asb100_detect(struct i2c_client *client, int kind, | 700 | static 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); |
51 | static int atxp1_remove(struct i2c_client *client); | 51 | static int atxp1_remove(struct i2c_client *client); |
52 | static struct atxp1_data * atxp1_update_device(struct device *dev); | 52 | static struct atxp1_data * atxp1_update_device(struct device *dev); |
53 | static int atxp1_detect(struct i2c_client *client, int kind, | 53 | static int atxp1_detect(struct i2c_client *client, struct i2c_board_info *info); |
54 | struct i2c_board_info *info); | ||
55 | 54 | ||
56 | static const struct i2c_device_id atxp1_id[] = { | 55 | static 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 */ |
278 | static int atxp1_detect(struct i2c_client *new_client, int kind, | 277 | static 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 */ |
2211 | static int dme1737_i2c_detect(struct i2c_client *client, int kind, | 2211 | static 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 */ |
227 | static int ds1621_detect(struct i2c_client *client, int kind, | 227 | static 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 | ||
116 | static int f75375_detect(struct i2c_client *client, int kind, | 116 | static int f75375_detect(struct i2c_client *client, |
117 | struct i2c_board_info *info); | 117 | struct i2c_board_info *info); |
118 | static int f75375_probe(struct i2c_client *client, | 118 | static 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 */ |
680 | static int f75375_detect(struct i2c_client *client, int kind, | 680 | static 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 | ||
222 | static int fschmd_probe(struct i2c_client *client, | 222 | static int fschmd_probe(struct i2c_client *client, |
223 | const struct i2c_device_id *id); | 223 | const struct i2c_device_id *id); |
224 | static int fschmd_detect(struct i2c_client *client, int kind, | 224 | static int fschmd_detect(struct i2c_client *client, |
225 | struct i2c_board_info *info); | 225 | struct i2c_board_info *info); |
226 | static int fschmd_remove(struct i2c_client *client); | 226 | static int fschmd_remove(struct i2c_client *client); |
227 | static struct fschmd_data *fschmd_update_device(struct device *dev); | 227 | static 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 | ||
1003 | static int fschmd_detect(struct i2c_client *client, int _kind, | 1003 | static 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 | ||
140 | static int gl518_probe(struct i2c_client *client, | 140 | static int gl518_probe(struct i2c_client *client, |
141 | const struct i2c_device_id *id); | 141 | const struct i2c_device_id *id); |
142 | static int gl518_detect(struct i2c_client *client, int kind, | 142 | static int gl518_detect(struct i2c_client *client, struct i2c_board_info *info); |
143 | struct i2c_board_info *info); | ||
144 | static void gl518_init_client(struct i2c_client *client); | 143 | static void gl518_init_client(struct i2c_client *client); |
145 | static int gl518_remove(struct i2c_client *client); | 144 | static int gl518_remove(struct i2c_client *client); |
146 | static int gl518_read_value(struct i2c_client *client, u8 reg); | 145 | static 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 */ |
487 | static int gl518_detect(struct i2c_client *client, int kind, | 486 | static 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 | ||
82 | static int gl520_probe(struct i2c_client *client, | 82 | static int gl520_probe(struct i2c_client *client, |
83 | const struct i2c_device_id *id); | 83 | const struct i2c_device_id *id); |
84 | static int gl520_detect(struct i2c_client *client, int kind, | 84 | static int gl520_detect(struct i2c_client *client, struct i2c_board_info *info); |
85 | struct i2c_board_info *info); | ||
86 | static void gl520_init_client(struct i2c_client *client); | 85 | static void gl520_init_client(struct i2c_client *client); |
87 | static int gl520_remove(struct i2c_client *client); | 86 | static int gl520_remove(struct i2c_client *client); |
88 | static int gl520_read_value(struct i2c_client *client, u8 reg); | 87 | static 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 */ |
684 | static int gl520_detect(struct i2c_client *client, int kind, | 683 | static 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 | ||
135 | static struct lm63_data *lm63_update_device(struct device *dev); | 135 | static struct lm63_data *lm63_update_device(struct device *dev); |
136 | 136 | ||
137 | static int lm63_detect(struct i2c_client *client, int kind, | 137 | static int lm63_detect(struct i2c_client *client, struct i2c_board_info *info); |
138 | struct i2c_board_info *info); | ||
139 | static void lm63_init_client(struct i2c_client *client); | 138 | static 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 */ |
426 | static int lm63_detect(struct i2c_client *new_client, int kind, | 425 | static 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[] = { | |||
151 | MODULE_DEVICE_TABLE(i2c, lm73_ids); | 151 | MODULE_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 */ |
154 | static int lm73_detect(struct i2c_client *new_client, int kind, | 154 | static 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[] = { | |||
234 | MODULE_DEVICE_TABLE(i2c, lm75_ids); | 234 | MODULE_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 */ |
237 | static int lm75_detect(struct i2c_client *new_client, int kind, | 237 | static 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 | ||
67 | static int lm77_probe(struct i2c_client *client, | 67 | static int lm77_probe(struct i2c_client *client, |
68 | const struct i2c_device_id *id); | 68 | const struct i2c_device_id *id); |
69 | static int lm77_detect(struct i2c_client *client, int kind, | 69 | static int lm77_detect(struct i2c_client *client, struct i2c_board_info *info); |
70 | struct i2c_board_info *info); | ||
71 | static void lm77_init_client(struct i2c_client *client); | 70 | static void lm77_init_client(struct i2c_client *client); |
72 | static int lm77_remove(struct i2c_client *client); | 71 | static int lm77_remove(struct i2c_client *client); |
73 | static u16 lm77_read_value(struct i2c_client *client, u8 reg); | 72 | static 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 */ |
248 | static int lm77_detect(struct i2c_client *new_client, int kind, | 247 | static 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 | ||
145 | static int lm78_i2c_detect(struct i2c_client *client, int kind, | 145 | static int lm78_i2c_detect(struct i2c_client *client, |
146 | struct i2c_board_info *info); | 146 | struct i2c_board_info *info); |
147 | static int lm78_i2c_probe(struct i2c_client *client, | 147 | static 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 | ||
561 | static int lm78_i2c_detect(struct i2c_client *client, int kind, | 561 | static 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 | ||
134 | static int lm80_probe(struct i2c_client *client, | 134 | static int lm80_probe(struct i2c_client *client, |
135 | const struct i2c_device_id *id); | 135 | const struct i2c_device_id *id); |
136 | static int lm80_detect(struct i2c_client *client, int kind, | 136 | static int lm80_detect(struct i2c_client *client, struct i2c_board_info *info); |
137 | struct i2c_board_info *info); | ||
138 | static void lm80_init_client(struct i2c_client *client); | 137 | static void lm80_init_client(struct i2c_client *client); |
139 | static int lm80_remove(struct i2c_client *client); | 138 | static int lm80_remove(struct i2c_client *client); |
140 | static struct lm80_data *lm80_update_device(struct device *dev); | 139 | static 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 */ |
450 | static int lm80_detect(struct i2c_client *client, int kind, | 449 | static 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 | ||
121 | static int lm83_detect(struct i2c_client *new_client, int kind, | 121 | static int lm83_detect(struct i2c_client *new_client, |
122 | struct i2c_board_info *info); | 122 | struct i2c_board_info *info); |
123 | static int lm83_probe(struct i2c_client *client, | 123 | static 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 */ |
294 | static int lm83_detect(struct i2c_client *new_client, int kind, | 294 | static 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 | ||
326 | static int lm85_detect(struct i2c_client *client, int kind, | 326 | static int lm85_detect(struct i2c_client *client, struct i2c_board_info *info); |
327 | struct i2c_board_info *info); | ||
328 | static int lm85_probe(struct i2c_client *client, | 327 | static int lm85_probe(struct i2c_client *client, |
329 | const struct i2c_device_id *id); | 328 | const struct i2c_device_id *id); |
330 | static int lm85_remove(struct i2c_client *client); | 329 | static 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 */ |
1159 | static int lm85_detect(struct i2c_client *client, int kind, | 1158 | static 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 | ||
159 | static int lm87_probe(struct i2c_client *client, | 159 | static int lm87_probe(struct i2c_client *client, |
160 | const struct i2c_device_id *id); | 160 | const struct i2c_device_id *id); |
161 | static int lm87_detect(struct i2c_client *new_client, int kind, | 161 | static int lm87_detect(struct i2c_client *new_client, |
162 | struct i2c_board_info *info); | 162 | struct i2c_board_info *info); |
163 | static void lm87_init_client(struct i2c_client *client); | 163 | static void lm87_init_client(struct i2c_client *client); |
164 | static int lm87_remove(struct i2c_client *client); | 164 | static 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 */ |
665 | static int lm87_detect(struct i2c_client *new_client, int kind, | 665 | static 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 | ||
155 | static int lm90_detect(struct i2c_client *client, int kind, | 155 | static int lm90_detect(struct i2c_client *client, struct i2c_board_info *info); |
156 | struct i2c_board_info *info); | ||
157 | static int lm90_probe(struct i2c_client *client, | 156 | static int lm90_probe(struct i2c_client *client, |
158 | const struct i2c_device_id *id); | 157 | const struct i2c_device_id *id); |
159 | static void lm90_init_client(struct i2c_client *client); | 158 | static 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 */ |
659 | static int lm90_detect(struct i2c_client *new_client, int kind, | 658 | static 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 */ |
322 | static int lm92_detect(struct i2c_client *new_client, int kind, | 322 | static 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 */ |
2504 | static int lm93_detect(struct i2c_client *client, int kind, | 2504 | static 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 */ |
313 | static int lm95241_detect(struct i2c_client *new_client, int kind, | 313 | static 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 | ||
89 | static int max1619_probe(struct i2c_client *client, | 89 | static int max1619_probe(struct i2c_client *client, |
90 | const struct i2c_device_id *id); | 90 | const struct i2c_device_id *id); |
91 | static int max1619_detect(struct i2c_client *client, int kind, | 91 | static int max1619_detect(struct i2c_client *client, |
92 | struct i2c_board_info *info); | 92 | struct i2c_board_info *info); |
93 | static void max1619_init_client(struct i2c_client *client); | 93 | static void max1619_init_client(struct i2c_client *client); |
94 | static int max1619_remove(struct i2c_client *client); | 94 | static 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 */ |
229 | static int max1619_detect(struct i2c_client *client, int kind, | 229 | static 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 | ||
117 | static int max6650_probe(struct i2c_client *client, | 117 | static int max6650_probe(struct i2c_client *client, |
118 | const struct i2c_device_id *id); | 118 | const struct i2c_device_id *id); |
119 | static int max6650_detect(struct i2c_client *client, int kind, | 119 | static int max6650_detect(struct i2c_client *client, |
120 | struct i2c_board_info *info); | 120 | struct i2c_board_info *info); |
121 | static int max6650_init_client(struct i2c_client *client); | 121 | static int max6650_init_client(struct i2c_client *client); |
122 | static int max6650_remove(struct i2c_client *client); | 122 | static 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 */ |
531 | static int max6650_detect(struct i2c_client *client, int kind, | 531 | static 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 */ |
172 | static int pcf8591_detect(struct i2c_client *client, int kind, | 172 | static 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 | ||
116 | static int smsc47m192_probe(struct i2c_client *client, | 116 | static int smsc47m192_probe(struct i2c_client *client, |
117 | const struct i2c_device_id *id); | 117 | const struct i2c_device_id *id); |
118 | static int smsc47m192_detect(struct i2c_client *client, int kind, | 118 | static int smsc47m192_detect(struct i2c_client *client, |
119 | struct i2c_board_info *info); | 119 | struct i2c_board_info *info); |
120 | static int smsc47m192_remove(struct i2c_client *client); | 120 | static int smsc47m192_remove(struct i2c_client *client); |
121 | static struct smsc47m192_data *smsc47m192_update_device(struct device *dev); | 121 | static 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 */ |
484 | static int smsc47m192_detect(struct i2c_client *client, int kind, | 484 | static 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 | ||
87 | static int thmc50_detect(struct i2c_client *client, int kind, | 87 | static int thmc50_detect(struct i2c_client *client, |
88 | struct i2c_board_info *info); | 88 | struct i2c_board_info *info); |
89 | static int thmc50_probe(struct i2c_client *client, | 89 | static 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 */ |
289 | static int thmc50_detect(struct i2c_client *client, int kind, | 289 | static 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 | ||
99 | static int tmp401_probe(struct i2c_client *client, | 99 | static int tmp401_probe(struct i2c_client *client, |
100 | const struct i2c_device_id *id); | 100 | const struct i2c_device_id *id); |
101 | static int tmp401_detect(struct i2c_client *client, int kind, | 101 | static int tmp401_detect(struct i2c_client *client, |
102 | struct i2c_board_info *info); | 102 | struct i2c_board_info *info); |
103 | static int tmp401_remove(struct i2c_client *client); | 103 | static int tmp401_remove(struct i2c_client *client); |
104 | static struct tmp401_data *tmp401_update_device(struct device *dev); | 104 | static 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 | ||
491 | static int tmp401_detect(struct i2c_client *client, int _kind, | 491 | static 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 | ||
226 | static int tmp421_detect(struct i2c_client *client, int _kind, | 226 | static 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 */ |
1053 | static int | 1053 | static int |
1054 | w83781d_detect(struct i2c_client *client, int kind, | 1054 | w83781d_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 | ||
327 | static int w83791d_probe(struct i2c_client *client, | 327 | static int w83791d_probe(struct i2c_client *client, |
328 | const struct i2c_device_id *id); | 328 | const struct i2c_device_id *id); |
329 | static int w83791d_detect(struct i2c_client *client, int kind, | 329 | static int w83791d_detect(struct i2c_client *client, |
330 | struct i2c_board_info *info); | 330 | struct i2c_board_info *info); |
331 | static int w83791d_remove(struct i2c_client *client); | 331 | static 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 */ |
1262 | static int w83791d_detect(struct i2c_client *client, int kind, | 1262 | static 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 | ||
303 | static int w83792d_probe(struct i2c_client *client, | 303 | static int w83792d_probe(struct i2c_client *client, |
304 | const struct i2c_device_id *id); | 304 | const struct i2c_device_id *id); |
305 | static int w83792d_detect(struct i2c_client *client, int kind, | 305 | static int w83792d_detect(struct i2c_client *client, |
306 | struct i2c_board_info *info); | 306 | struct i2c_board_info *info); |
307 | static int w83792d_remove(struct i2c_client *client); | 307 | static int w83792d_remove(struct i2c_client *client); |
308 | static struct w83792d_data *w83792d_update_device(struct device *dev); | 308 | static 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 */ |
1265 | static int | 1265 | static int |
1266 | w83792d_detect(struct i2c_client *client, int kind, struct i2c_board_info *info) | 1266 | w83792d_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); | |||
230 | static int w83793_write_value(struct i2c_client *client, u16 reg, u8 value); | 230 | static int w83793_write_value(struct i2c_client *client, u16 reg, u8 value); |
231 | static int w83793_probe(struct i2c_client *client, | 231 | static int w83793_probe(struct i2c_client *client, |
232 | const struct i2c_device_id *id); | 232 | const struct i2c_device_id *id); |
233 | static int w83793_detect(struct i2c_client *client, int kind, | 233 | static int w83793_detect(struct i2c_client *client, |
234 | struct i2c_board_info *info); | 234 | struct i2c_board_info *info); |
235 | static int w83793_remove(struct i2c_client *client); | 235 | static int w83793_remove(struct i2c_client *client); |
236 | static void w83793_init_client(struct i2c_client *client); | 236 | static 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 */ |
1164 | static int w83793_detect(struct i2c_client *client, int kind, | 1164 | static 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 | ||
84 | static int w83l785ts_probe(struct i2c_client *client, | 84 | static int w83l785ts_probe(struct i2c_client *client, |
85 | const struct i2c_device_id *id); | 85 | const struct i2c_device_id *id); |
86 | static int w83l785ts_detect(struct i2c_client *client, int kind, | 86 | static int w83l785ts_detect(struct i2c_client *client, |
87 | struct i2c_board_info *info); | 87 | struct i2c_board_info *info); |
88 | static int w83l785ts_remove(struct i2c_client *client); | 88 | static int w83l785ts_remove(struct i2c_client *client); |
89 | static u8 w83l785ts_read_value(struct i2c_client *client, u8 reg, u8 defval); | 89 | static 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 */ |
149 | static int w83l785ts_detect(struct i2c_client *client, int kind, | 149 | static 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 | ||
148 | static int w83l786ng_probe(struct i2c_client *client, | 148 | static int w83l786ng_probe(struct i2c_client *client, |
149 | const struct i2c_device_id *id); | 149 | const struct i2c_device_id *id); |
150 | static int w83l786ng_detect(struct i2c_client *client, int kind, | 150 | static int w83l786ng_detect(struct i2c_client *client, |
151 | struct i2c_board_info *info); | 151 | struct i2c_board_info *info); |
152 | static int w83l786ng_remove(struct i2c_client *client); | 152 | static int w83l786ng_remove(struct i2c_client *client); |
153 | static void w83l786ng_init_client(struct i2c_client *client); | 153 | static void w83l786ng_init_client(struct i2c_client *client); |
@@ -586,8 +586,7 @@ static const struct attribute_group w83l786ng_group = { | |||
586 | }; | 586 | }; |
587 | 587 | ||
588 | static int | 588 | static int |
589 | w83l786ng_detect(struct i2c_client *client, int kind, | 589 | w83l786ng_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; |