diff options
author | Dmitry Torokhov <dtor@insightbb.com> | 2006-09-14 01:31:59 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor@insightbb.com> | 2006-09-14 01:31:59 -0400 |
commit | 66e66118837ed95a299328437c2d9fb4b5137352 (patch) | |
tree | 901c8b3ab9ab01b0363992b65689cafe797fcb25 /drivers/input/input.c | |
parent | 5206c0d5ec514733dd098cf658d71327d199c7a0 (diff) |
Input: constify input core
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/input.c')
-rw-r--r-- | drivers/input/input.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/input/input.c b/drivers/input/input.c index 1c71dd6fe5cd..4954c790ccb1 100644 --- a/drivers/input/input.c +++ b/drivers/input/input.c | |||
@@ -313,7 +313,8 @@ static void input_link_handle(struct input_handle *handle) | |||
313 | if (i != NBITS(max)) \ | 313 | if (i != NBITS(max)) \ |
314 | continue; | 314 | continue; |
315 | 315 | ||
316 | static struct input_device_id *input_match_device(struct input_device_id *id, struct input_dev *dev) | 316 | static const struct input_device_id *input_match_device(const struct input_device_id *id, |
317 | struct input_dev *dev) | ||
317 | { | 318 | { |
318 | int i; | 319 | int i; |
319 | 320 | ||
@@ -935,7 +936,7 @@ int input_register_device(struct input_dev *dev) | |||
935 | static atomic_t input_no = ATOMIC_INIT(0); | 936 | static atomic_t input_no = ATOMIC_INIT(0); |
936 | struct input_handle *handle; | 937 | struct input_handle *handle; |
937 | struct input_handler *handler; | 938 | struct input_handler *handler; |
938 | struct input_device_id *id; | 939 | const struct input_device_id *id; |
939 | const char *path; | 940 | const char *path; |
940 | int error; | 941 | int error; |
941 | 942 | ||
@@ -1050,7 +1051,7 @@ void input_register_handler(struct input_handler *handler) | |||
1050 | { | 1051 | { |
1051 | struct input_dev *dev; | 1052 | struct input_dev *dev; |
1052 | struct input_handle *handle; | 1053 | struct input_handle *handle; |
1053 | struct input_device_id *id; | 1054 | const struct input_device_id *id; |
1054 | 1055 | ||
1055 | if (!handler) | 1056 | if (!handler) |
1056 | return; | 1057 | return; |