diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-04-04 02:50:17 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-04-04 12:25:43 -0400 |
commit | 65ac9f7a23c934ee8c40dc20955e75db4924bfea (patch) | |
tree | 7baa3439e9b0a774073473cccef6960e7f77bc6e /drivers/input/touchscreen | |
parent | fa7f86d157781515b74d658120552eafd890f4de (diff) |
Input: serio - use module_serio_driver
This patch converts the drivers in drivers/input/* to use
module_serio_driver() macro which makes the code smaller and
a bit simpler.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/touchscreen')
-rw-r--r-- | drivers/input/touchscreen/dynapro.c | 17 | ||||
-rw-r--r-- | drivers/input/touchscreen/elo.c | 17 | ||||
-rw-r--r-- | drivers/input/touchscreen/fujitsu_ts.c | 13 | ||||
-rw-r--r-- | drivers/input/touchscreen/gunze.c | 17 | ||||
-rw-r--r-- | drivers/input/touchscreen/h3600_ts_input.c | 17 | ||||
-rw-r--r-- | drivers/input/touchscreen/hampshire.c | 17 | ||||
-rw-r--r-- | drivers/input/touchscreen/inexio.c | 17 | ||||
-rw-r--r-- | drivers/input/touchscreen/mtouch.c | 17 | ||||
-rw-r--r-- | drivers/input/touchscreen/penmount.c | 17 | ||||
-rw-r--r-- | drivers/input/touchscreen/touchit213.c | 17 | ||||
-rw-r--r-- | drivers/input/touchscreen/touchright.c | 17 | ||||
-rw-r--r-- | drivers/input/touchscreen/touchwin.c | 17 | ||||
-rw-r--r-- | drivers/input/touchscreen/tsc40.c | 12 | ||||
-rw-r--r-- | drivers/input/touchscreen/wacom_w8001.c | 13 |
14 files changed, 14 insertions, 211 deletions
diff --git a/drivers/input/touchscreen/dynapro.c b/drivers/input/touchscreen/dynapro.c index 455353908bdf..1809677a6513 100644 --- a/drivers/input/touchscreen/dynapro.c +++ b/drivers/input/touchscreen/dynapro.c | |||
@@ -188,19 +188,4 @@ static struct serio_driver dynapro_drv = { | |||
188 | .disconnect = dynapro_disconnect, | 188 | .disconnect = dynapro_disconnect, |
189 | }; | 189 | }; |
190 | 190 | ||
191 | /* | 191 | module_serio_driver(dynapro_drv); |
192 | * The functions for inserting/removing us as a module. | ||
193 | */ | ||
194 | |||
195 | static int __init dynapro_init(void) | ||
196 | { | ||
197 | return serio_register_driver(&dynapro_drv); | ||
198 | } | ||
199 | |||
200 | static void __exit dynapro_exit(void) | ||
201 | { | ||
202 | serio_unregister_driver(&dynapro_drv); | ||
203 | } | ||
204 | |||
205 | module_init(dynapro_init); | ||
206 | module_exit(dynapro_exit); | ||
diff --git a/drivers/input/touchscreen/elo.c b/drivers/input/touchscreen/elo.c index 486d31ba9c09..957423d1471d 100644 --- a/drivers/input/touchscreen/elo.c +++ b/drivers/input/touchscreen/elo.c | |||
@@ -405,19 +405,4 @@ static struct serio_driver elo_drv = { | |||
405 | .disconnect = elo_disconnect, | 405 | .disconnect = elo_disconnect, |
406 | }; | 406 | }; |
407 | 407 | ||
408 | /* | 408 | module_serio_driver(elo_drv); |
409 | * The functions for inserting/removing us as a module. | ||
410 | */ | ||
411 | |||
412 | static int __init elo_init(void) | ||
413 | { | ||
414 | return serio_register_driver(&elo_drv); | ||
415 | } | ||
416 | |||
417 | static void __exit elo_exit(void) | ||
418 | { | ||
419 | serio_unregister_driver(&elo_drv); | ||
420 | } | ||
421 | |||
422 | module_init(elo_init); | ||
423 | module_exit(elo_exit); | ||
diff --git a/drivers/input/touchscreen/fujitsu_ts.c b/drivers/input/touchscreen/fujitsu_ts.c index 80b21800355f..10794ddbdf58 100644 --- a/drivers/input/touchscreen/fujitsu_ts.c +++ b/drivers/input/touchscreen/fujitsu_ts.c | |||
@@ -175,15 +175,4 @@ static struct serio_driver fujitsu_drv = { | |||
175 | .disconnect = fujitsu_disconnect, | 175 | .disconnect = fujitsu_disconnect, |
176 | }; | 176 | }; |
177 | 177 | ||
178 | static int __init fujitsu_init(void) | 178 | module_serio_driver(fujitsu_drv); |
179 | { | ||
180 | return serio_register_driver(&fujitsu_drv); | ||
181 | } | ||
182 | |||
183 | static void __exit fujitsu_exit(void) | ||
184 | { | ||
185 | serio_unregister_driver(&fujitsu_drv); | ||
186 | } | ||
187 | |||
188 | module_init(fujitsu_init); | ||
189 | module_exit(fujitsu_exit); | ||
diff --git a/drivers/input/touchscreen/gunze.c b/drivers/input/touchscreen/gunze.c index a54f90e02ab6..41c71766bf18 100644 --- a/drivers/input/touchscreen/gunze.c +++ b/drivers/input/touchscreen/gunze.c | |||
@@ -186,19 +186,4 @@ static struct serio_driver gunze_drv = { | |||
186 | .disconnect = gunze_disconnect, | 186 | .disconnect = gunze_disconnect, |
187 | }; | 187 | }; |
188 | 188 | ||
189 | /* | 189 | module_serio_driver(gunze_drv); |
190 | * The functions for inserting/removing us as a module. | ||
191 | */ | ||
192 | |||
193 | static int __init gunze_init(void) | ||
194 | { | ||
195 | return serio_register_driver(&gunze_drv); | ||
196 | } | ||
197 | |||
198 | static void __exit gunze_exit(void) | ||
199 | { | ||
200 | serio_unregister_driver(&gunze_drv); | ||
201 | } | ||
202 | |||
203 | module_init(gunze_init); | ||
204 | module_exit(gunze_exit); | ||
diff --git a/drivers/input/touchscreen/h3600_ts_input.c b/drivers/input/touchscreen/h3600_ts_input.c index 6107e563e681..b9e8686a6f1c 100644 --- a/drivers/input/touchscreen/h3600_ts_input.c +++ b/drivers/input/touchscreen/h3600_ts_input.c | |||
@@ -476,19 +476,4 @@ static struct serio_driver h3600ts_drv = { | |||
476 | .disconnect = h3600ts_disconnect, | 476 | .disconnect = h3600ts_disconnect, |
477 | }; | 477 | }; |
478 | 478 | ||
479 | /* | 479 | module_serio_driver(h3600ts_drv); |
480 | * The functions for inserting/removing us as a module. | ||
481 | */ | ||
482 | |||
483 | static int __init h3600ts_init(void) | ||
484 | { | ||
485 | return serio_register_driver(&h3600ts_drv); | ||
486 | } | ||
487 | |||
488 | static void __exit h3600ts_exit(void) | ||
489 | { | ||
490 | serio_unregister_driver(&h3600ts_drv); | ||
491 | } | ||
492 | |||
493 | module_init(h3600ts_init); | ||
494 | module_exit(h3600ts_exit); | ||
diff --git a/drivers/input/touchscreen/hampshire.c b/drivers/input/touchscreen/hampshire.c index 2da6cc31bb21..0cc47ea98acf 100644 --- a/drivers/input/touchscreen/hampshire.c +++ b/drivers/input/touchscreen/hampshire.c | |||
@@ -187,19 +187,4 @@ static struct serio_driver hampshire_drv = { | |||
187 | .disconnect = hampshire_disconnect, | 187 | .disconnect = hampshire_disconnect, |
188 | }; | 188 | }; |
189 | 189 | ||
190 | /* | 190 | module_serio_driver(hampshire_drv); |
191 | * The functions for inserting/removing us as a module. | ||
192 | */ | ||
193 | |||
194 | static int __init hampshire_init(void) | ||
195 | { | ||
196 | return serio_register_driver(&hampshire_drv); | ||
197 | } | ||
198 | |||
199 | static void __exit hampshire_exit(void) | ||
200 | { | ||
201 | serio_unregister_driver(&hampshire_drv); | ||
202 | } | ||
203 | |||
204 | module_init(hampshire_init); | ||
205 | module_exit(hampshire_exit); | ||
diff --git a/drivers/input/touchscreen/inexio.c b/drivers/input/touchscreen/inexio.c index 192ade0a0fb9..a29c99c32245 100644 --- a/drivers/input/touchscreen/inexio.c +++ b/drivers/input/touchscreen/inexio.c | |||
@@ -189,19 +189,4 @@ static struct serio_driver inexio_drv = { | |||
189 | .disconnect = inexio_disconnect, | 189 | .disconnect = inexio_disconnect, |
190 | }; | 190 | }; |
191 | 191 | ||
192 | /* | 192 | module_serio_driver(inexio_drv); |
193 | * The functions for inserting/removing us as a module. | ||
194 | */ | ||
195 | |||
196 | static int __init inexio_init(void) | ||
197 | { | ||
198 | return serio_register_driver(&inexio_drv); | ||
199 | } | ||
200 | |||
201 | static void __exit inexio_exit(void) | ||
202 | { | ||
203 | serio_unregister_driver(&inexio_drv); | ||
204 | } | ||
205 | |||
206 | module_init(inexio_init); | ||
207 | module_exit(inexio_exit); | ||
diff --git a/drivers/input/touchscreen/mtouch.c b/drivers/input/touchscreen/mtouch.c index 9077228418b7..eb66b7c37c2f 100644 --- a/drivers/input/touchscreen/mtouch.c +++ b/drivers/input/touchscreen/mtouch.c | |||
@@ -202,19 +202,4 @@ static struct serio_driver mtouch_drv = { | |||
202 | .disconnect = mtouch_disconnect, | 202 | .disconnect = mtouch_disconnect, |
203 | }; | 203 | }; |
204 | 204 | ||
205 | /* | 205 | module_serio_driver(mtouch_drv); |
206 | * The functions for inserting/removing us as a module. | ||
207 | */ | ||
208 | |||
209 | static int __init mtouch_init(void) | ||
210 | { | ||
211 | return serio_register_driver(&mtouch_drv); | ||
212 | } | ||
213 | |||
214 | static void __exit mtouch_exit(void) | ||
215 | { | ||
216 | serio_unregister_driver(&mtouch_drv); | ||
217 | } | ||
218 | |||
219 | module_init(mtouch_init); | ||
220 | module_exit(mtouch_exit); | ||
diff --git a/drivers/input/touchscreen/penmount.c b/drivers/input/touchscreen/penmount.c index 4c012fb2b01e..4ccde45b9da2 100644 --- a/drivers/input/touchscreen/penmount.c +++ b/drivers/input/touchscreen/penmount.c | |||
@@ -317,19 +317,4 @@ static struct serio_driver pm_drv = { | |||
317 | .disconnect = pm_disconnect, | 317 | .disconnect = pm_disconnect, |
318 | }; | 318 | }; |
319 | 319 | ||
320 | /* | 320 | module_serio_driver(pm_drv); |
321 | * The functions for inserting/removing us as a module. | ||
322 | */ | ||
323 | |||
324 | static int __init pm_init(void) | ||
325 | { | ||
326 | return serio_register_driver(&pm_drv); | ||
327 | } | ||
328 | |||
329 | static void __exit pm_exit(void) | ||
330 | { | ||
331 | serio_unregister_driver(&pm_drv); | ||
332 | } | ||
333 | |||
334 | module_init(pm_init); | ||
335 | module_exit(pm_exit); | ||
diff --git a/drivers/input/touchscreen/touchit213.c b/drivers/input/touchscreen/touchit213.c index d1297ba19daf..5f29e5b8e1c1 100644 --- a/drivers/input/touchscreen/touchit213.c +++ b/drivers/input/touchscreen/touchit213.c | |||
@@ -216,19 +216,4 @@ static struct serio_driver touchit213_drv = { | |||
216 | .disconnect = touchit213_disconnect, | 216 | .disconnect = touchit213_disconnect, |
217 | }; | 217 | }; |
218 | 218 | ||
219 | /* | 219 | module_serio_driver(touchit213_drv); |
220 | * The functions for inserting/removing us as a module. | ||
221 | */ | ||
222 | |||
223 | static int __init touchit213_init(void) | ||
224 | { | ||
225 | return serio_register_driver(&touchit213_drv); | ||
226 | } | ||
227 | |||
228 | static void __exit touchit213_exit(void) | ||
229 | { | ||
230 | serio_unregister_driver(&touchit213_drv); | ||
231 | } | ||
232 | |||
233 | module_init(touchit213_init); | ||
234 | module_exit(touchit213_exit); | ||
diff --git a/drivers/input/touchscreen/touchright.c b/drivers/input/touchscreen/touchright.c index 3a5c142c2a78..8a2887daf194 100644 --- a/drivers/input/touchscreen/touchright.c +++ b/drivers/input/touchscreen/touchright.c | |||
@@ -176,19 +176,4 @@ static struct serio_driver tr_drv = { | |||
176 | .disconnect = tr_disconnect, | 176 | .disconnect = tr_disconnect, |
177 | }; | 177 | }; |
178 | 178 | ||
179 | /* | 179 | module_serio_driver(tr_drv); |
180 | * The functions for inserting/removing us as a module. | ||
181 | */ | ||
182 | |||
183 | static int __init tr_init(void) | ||
184 | { | ||
185 | return serio_register_driver(&tr_drv); | ||
186 | } | ||
187 | |||
188 | static void __exit tr_exit(void) | ||
189 | { | ||
190 | serio_unregister_driver(&tr_drv); | ||
191 | } | ||
192 | |||
193 | module_init(tr_init); | ||
194 | module_exit(tr_exit); | ||
diff --git a/drivers/input/touchscreen/touchwin.c b/drivers/input/touchscreen/touchwin.c index 763a656a59f8..588cdcb839dd 100644 --- a/drivers/input/touchscreen/touchwin.c +++ b/drivers/input/touchscreen/touchwin.c | |||
@@ -183,19 +183,4 @@ static struct serio_driver tw_drv = { | |||
183 | .disconnect = tw_disconnect, | 183 | .disconnect = tw_disconnect, |
184 | }; | 184 | }; |
185 | 185 | ||
186 | /* | 186 | module_serio_driver(tw_drv); |
187 | * The functions for inserting/removing us as a module. | ||
188 | */ | ||
189 | |||
190 | static int __init tw_init(void) | ||
191 | { | ||
192 | return serio_register_driver(&tw_drv); | ||
193 | } | ||
194 | |||
195 | static void __exit tw_exit(void) | ||
196 | { | ||
197 | serio_unregister_driver(&tw_drv); | ||
198 | } | ||
199 | |||
200 | module_init(tw_init); | ||
201 | module_exit(tw_exit); | ||
diff --git a/drivers/input/touchscreen/tsc40.c b/drivers/input/touchscreen/tsc40.c index 29d5ed4dd31c..63209aaa55f0 100644 --- a/drivers/input/touchscreen/tsc40.c +++ b/drivers/input/touchscreen/tsc40.c | |||
@@ -167,17 +167,7 @@ static struct serio_driver tsc_drv = { | |||
167 | .disconnect = tsc_disconnect, | 167 | .disconnect = tsc_disconnect, |
168 | }; | 168 | }; |
169 | 169 | ||
170 | static int __init tsc_ser_init(void) | 170 | module_serio_driver(tsc_drv); |
171 | { | ||
172 | return serio_register_driver(&tsc_drv); | ||
173 | } | ||
174 | module_init(tsc_ser_init); | ||
175 | |||
176 | static void __exit tsc_exit(void) | ||
177 | { | ||
178 | serio_unregister_driver(&tsc_drv); | ||
179 | } | ||
180 | module_exit(tsc_exit); | ||
181 | 171 | ||
182 | MODULE_AUTHOR("Sebastian Andrzej Siewior <bigeasy@linutronix.de>"); | 172 | MODULE_AUTHOR("Sebastian Andrzej Siewior <bigeasy@linutronix.de>"); |
183 | MODULE_DESCRIPTION(DRIVER_DESC); | 173 | MODULE_DESCRIPTION(DRIVER_DESC); |
diff --git a/drivers/input/touchscreen/wacom_w8001.c b/drivers/input/touchscreen/wacom_w8001.c index 1569a3934ab2..8f9ad2f893b8 100644 --- a/drivers/input/touchscreen/wacom_w8001.c +++ b/drivers/input/touchscreen/wacom_w8001.c | |||
@@ -594,15 +594,4 @@ static struct serio_driver w8001_drv = { | |||
594 | .disconnect = w8001_disconnect, | 594 | .disconnect = w8001_disconnect, |
595 | }; | 595 | }; |
596 | 596 | ||
597 | static int __init w8001_init(void) | 597 | module_serio_driver(w8001_drv); |
598 | { | ||
599 | return serio_register_driver(&w8001_drv); | ||
600 | } | ||
601 | |||
602 | static void __exit w8001_exit(void) | ||
603 | { | ||
604 | serio_unregister_driver(&w8001_drv); | ||
605 | } | ||
606 | |||
607 | module_init(w8001_init); | ||
608 | module_exit(w8001_exit); | ||