diff options
Diffstat (limited to 'drivers/input/touchscreen/eeti_ts.c')
-rw-r--r-- | drivers/input/touchscreen/eeti_ts.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/drivers/input/touchscreen/eeti_ts.c b/drivers/input/touchscreen/eeti_ts.c index 7f8f538a9806..503c7096ed36 100644 --- a/drivers/input/touchscreen/eeti_ts.c +++ b/drivers/input/touchscreen/eeti_ts.c | |||
@@ -35,11 +35,11 @@ | |||
35 | #include <linux/input/eeti_ts.h> | 35 | #include <linux/input/eeti_ts.h> |
36 | #include <linux/slab.h> | 36 | #include <linux/slab.h> |
37 | 37 | ||
38 | static int flip_x; | 38 | static bool flip_x; |
39 | module_param(flip_x, bool, 0644); | 39 | module_param(flip_x, bool, 0644); |
40 | MODULE_PARM_DESC(flip_x, "flip x coordinate"); | 40 | MODULE_PARM_DESC(flip_x, "flip x coordinate"); |
41 | 41 | ||
42 | static int flip_y; | 42 | static bool flip_y; |
43 | module_param(flip_y, bool, 0644); | 43 | module_param(flip_y, bool, 0644); |
44 | MODULE_PARM_DESC(flip_y, "flip y coordinate"); | 44 | MODULE_PARM_DESC(flip_y, "flip y coordinate"); |
45 | 45 | ||
@@ -320,20 +320,8 @@ static struct i2c_driver eeti_ts_driver = { | |||
320 | .id_table = eeti_ts_id, | 320 | .id_table = eeti_ts_id, |
321 | }; | 321 | }; |
322 | 322 | ||
323 | static int __init eeti_ts_init(void) | 323 | module_i2c_driver(eeti_ts_driver); |
324 | { | ||
325 | return i2c_add_driver(&eeti_ts_driver); | ||
326 | } | ||
327 | |||
328 | static void __exit eeti_ts_exit(void) | ||
329 | { | ||
330 | i2c_del_driver(&eeti_ts_driver); | ||
331 | } | ||
332 | 324 | ||
333 | MODULE_DESCRIPTION("EETI Touchscreen driver"); | 325 | MODULE_DESCRIPTION("EETI Touchscreen driver"); |
334 | MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>"); | 326 | MODULE_AUTHOR("Daniel Mack <daniel@caiaq.de>"); |
335 | MODULE_LICENSE("GPL"); | 327 | MODULE_LICENSE("GPL"); |
336 | |||
337 | module_init(eeti_ts_init); | ||
338 | module_exit(eeti_ts_exit); | ||
339 | |||