diff options
Diffstat (limited to 'drivers/input/evbug.c')
-rw-r--r-- | drivers/input/evbug.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/input/evbug.c b/drivers/input/evbug.c index 07358fb51b82..5a9653c3128a 100644 --- a/drivers/input/evbug.c +++ b/drivers/input/evbug.c | |||
@@ -42,10 +42,12 @@ static char evbug_name[] = "evbug"; | |||
42 | 42 | ||
43 | static void evbug_event(struct input_handle *handle, unsigned int type, unsigned int code, int value) | 43 | static void evbug_event(struct input_handle *handle, unsigned int type, unsigned int code, int value) |
44 | { | 44 | { |
45 | printk(KERN_DEBUG "evbug.c: Event. Dev: %s, Type: %d, Code: %d, Value: %d\n", handle->dev->phys, type, code, value); | 45 | printk(KERN_DEBUG "evbug.c: Event. Dev: %s, Type: %d, Code: %d, Value: %d\n", |
46 | handle->dev->phys, type, code, value); | ||
46 | } | 47 | } |
47 | 48 | ||
48 | static struct input_handle *evbug_connect(struct input_handler *handler, struct input_dev *dev, struct input_device_id *id) | 49 | static struct input_handle *evbug_connect(struct input_handler *handler, struct input_dev *dev, |
50 | const struct input_device_id *id) | ||
49 | { | 51 | { |
50 | struct input_handle *handle; | 52 | struct input_handle *handle; |
51 | 53 | ||
@@ -72,7 +74,7 @@ static void evbug_disconnect(struct input_handle *handle) | |||
72 | kfree(handle); | 74 | kfree(handle); |
73 | } | 75 | } |
74 | 76 | ||
75 | static struct input_device_id evbug_ids[] = { | 77 | static const struct input_device_id evbug_ids[] = { |
76 | { .driver_info = 1 }, /* Matches all devices */ | 78 | { .driver_info = 1 }, /* Matches all devices */ |
77 | { }, /* Terminating zero entry */ | 79 | { }, /* Terminating zero entry */ |
78 | }; | 80 | }; |
@@ -89,8 +91,7 @@ static struct input_handler evbug_handler = { | |||
89 | 91 | ||
90 | static int __init evbug_init(void) | 92 | static int __init evbug_init(void) |
91 | { | 93 | { |
92 | input_register_handler(&evbug_handler); | 94 | return input_register_handler(&evbug_handler); |
93 | return 0; | ||
94 | } | 95 | } |
95 | 96 | ||
96 | static void __exit evbug_exit(void) | 97 | static void __exit evbug_exit(void) |