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/joydev.c | |
parent | 5206c0d5ec514733dd098cf658d71327d199c7a0 (diff) |
Input: constify input core
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/joydev.c')
-rw-r--r-- | drivers/input/joydev.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/input/joydev.c b/drivers/input/joydev.c index d67157513bf7..033e3aac92a3 100644 --- a/drivers/input/joydev.c +++ b/drivers/input/joydev.c | |||
@@ -451,7 +451,7 @@ static int joydev_ioctl(struct inode *inode, struct file *file, unsigned int cmd | |||
451 | } | 451 | } |
452 | } | 452 | } |
453 | 453 | ||
454 | static struct file_operations joydev_fops = { | 454 | static const struct file_operations joydev_fops = { |
455 | .owner = THIS_MODULE, | 455 | .owner = THIS_MODULE, |
456 | .read = joydev_read, | 456 | .read = joydev_read, |
457 | .write = joydev_write, | 457 | .write = joydev_write, |
@@ -465,7 +465,8 @@ static struct file_operations joydev_fops = { | |||
465 | .fasync = joydev_fasync, | 465 | .fasync = joydev_fasync, |
466 | }; | 466 | }; |
467 | 467 | ||
468 | static struct input_handle *joydev_connect(struct input_handler *handler, struct input_dev *dev, struct input_device_id *id) | 468 | static struct input_handle *joydev_connect(struct input_handler *handler, struct input_dev *dev, |
469 | const struct input_device_id *id) | ||
469 | { | 470 | { |
470 | struct joydev *joydev; | 471 | struct joydev *joydev; |
471 | struct class_device *cdev; | 472 | struct class_device *cdev; |
@@ -562,7 +563,7 @@ static void joydev_disconnect(struct input_handle *handle) | |||
562 | joydev_free(joydev); | 563 | joydev_free(joydev); |
563 | } | 564 | } |
564 | 565 | ||
565 | static struct input_device_id joydev_blacklist[] = { | 566 | static const struct input_device_id joydev_blacklist[] = { |
566 | { | 567 | { |
567 | .flags = INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT, | 568 | .flags = INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT, |
568 | .evbit = { BIT(EV_KEY) }, | 569 | .evbit = { BIT(EV_KEY) }, |
@@ -571,7 +572,7 @@ static struct input_device_id joydev_blacklist[] = { | |||
571 | { } /* Terminating entry */ | 572 | { } /* Terminating entry */ |
572 | }; | 573 | }; |
573 | 574 | ||
574 | static struct input_device_id joydev_ids[] = { | 575 | static const struct input_device_id joydev_ids[] = { |
575 | { | 576 | { |
576 | .flags = INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_ABSBIT, | 577 | .flags = INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_ABSBIT, |
577 | .evbit = { BIT(EV_ABS) }, | 578 | .evbit = { BIT(EV_ABS) }, |