aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/tsc2007.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-03-17 02:05:41 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2012-03-17 02:06:19 -0400
commit1b92c1cf6b638e7cbe9fdaac3f6efb8874f5cc02 (patch)
tree88e7cfcd088df7eba9b705285c8e0d8ba7bbd632 /drivers/input/touchscreen/tsc2007.c
parentca83922e1c51c090e62bd42f3c12c84f49374a9e (diff)
Input: convert I2C drivers to use module_i2c_driver()
This patch converts the drivers in drivers/input/* to use the module_i2c_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/tsc2007.c')
-rw-r--r--drivers/input/touchscreen/tsc2007.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/input/touchscreen/tsc2007.c b/drivers/input/touchscreen/tsc2007.c
index 1f674cb6c55..1473d2382af 100644
--- a/drivers/input/touchscreen/tsc2007.c
+++ b/drivers/input/touchscreen/tsc2007.c
@@ -399,18 +399,7 @@ static struct i2c_driver tsc2007_driver = {
399 .remove = __devexit_p(tsc2007_remove), 399 .remove = __devexit_p(tsc2007_remove),
400}; 400};
401 401
402static int __init tsc2007_init(void) 402module_i2c_driver(tsc2007_driver);
403{
404 return i2c_add_driver(&tsc2007_driver);
405}
406
407static void __exit tsc2007_exit(void)
408{
409 i2c_del_driver(&tsc2007_driver);
410}
411
412module_init(tsc2007_init);
413module_exit(tsc2007_exit);
414 403
415MODULE_AUTHOR("Kwangwoo Lee <kwlee@mtekvision.com>"); 404MODULE_AUTHOR("Kwangwoo Lee <kwlee@mtekvision.com>");
416MODULE_DESCRIPTION("TSC2007 TouchScreen Driver"); 405MODULE_DESCRIPTION("TSC2007 TouchScreen Driver");