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) | |
download | blackbird-op-linux-66e66118837ed95a299328437c2d9fb4b5137352.tar.gz blackbird-op-linux-66e66118837ed95a299328437c2d9fb4b5137352.zip |
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) if (i != NBITS(max)) \ continue; -static struct input_device_id *input_match_device(struct input_device_id *id, struct input_dev *dev) +static const struct input_device_id *input_match_device(const struct input_device_id *id, + struct input_dev *dev) { int i; @@ -935,7 +936,7 @@ int input_register_device(struct input_dev *dev) static atomic_t input_no = ATOMIC_INIT(0); struct input_handle *handle; struct input_handler *handler; - struct input_device_id *id; + const struct input_device_id *id; const char *path; int error; @@ -1050,7 +1051,7 @@ void input_register_handler(struct input_handler *handler) { struct input_dev *dev; struct input_handle *handle; - struct input_device_id *id; + const struct input_device_id *id; if (!handler) return; |