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/evdev.c | |
parent | 5206c0d5ec514733dd098cf658d71327d199c7a0 (diff) |
Input: constify input core
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/evdev.c')
-rw-r--r-- | drivers/input/evdev.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/input/evdev.c b/drivers/input/evdev.c index 12c7ab876c34..154e423167b9 100644 --- a/drivers/input/evdev.c +++ b/drivers/input/evdev.c | |||
@@ -601,7 +601,7 @@ static long evdev_ioctl_compat(struct file *file, unsigned int cmd, unsigned lon | |||
601 | } | 601 | } |
602 | #endif | 602 | #endif |
603 | 603 | ||
604 | static struct file_operations evdev_fops = { | 604 | static const struct file_operations evdev_fops = { |
605 | .owner = THIS_MODULE, | 605 | .owner = THIS_MODULE, |
606 | .read = evdev_read, | 606 | .read = evdev_read, |
607 | .write = evdev_write, | 607 | .write = evdev_write, |
@@ -616,7 +616,8 @@ static struct file_operations evdev_fops = { | |||
616 | .flush = evdev_flush | 616 | .flush = evdev_flush |
617 | }; | 617 | }; |
618 | 618 | ||
619 | static struct input_handle *evdev_connect(struct input_handler *handler, struct input_dev *dev, struct input_device_id *id) | 619 | static struct input_handle *evdev_connect(struct input_handler *handler, struct input_dev *dev, |
620 | const struct input_device_id *id) | ||
620 | { | 621 | { |
621 | struct evdev *evdev; | 622 | struct evdev *evdev; |
622 | struct class_device *cdev; | 623 | struct class_device *cdev; |
@@ -675,7 +676,7 @@ static void evdev_disconnect(struct input_handle *handle) | |||
675 | evdev_free(evdev); | 676 | evdev_free(evdev); |
676 | } | 677 | } |
677 | 678 | ||
678 | static struct input_device_id evdev_ids[] = { | 679 | static const struct input_device_id evdev_ids[] = { |
679 | { .driver_info = 1 }, /* Matches all devices */ | 680 | { .driver_info = 1 }, /* Matches all devices */ |
680 | { }, /* Terminating zero entry */ | 681 | { }, /* Terminating zero entry */ |
681 | }; | 682 | }; |