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/tsdev.c | |
parent | 5206c0d5ec514733dd098cf658d71327d199c7a0 (diff) | |
download | kernel-crypto-66e66118837ed95a299328437c2d9fb4b5137352.tar.gz kernel-crypto-66e66118837ed95a299328437c2d9fb4b5137352.tar.xz kernel-crypto-66e66118837ed95a299328437c2d9fb4b5137352.zip |
Input: constify input core
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/tsdev.c')
-rw-r--r-- | drivers/input/tsdev.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/input/tsdev.c b/drivers/input/tsdev.c index 00e3929c628..162ee08223a 100644 --- a/drivers/input/tsdev.c +++ b/drivers/input/tsdev.c @@ -135,8 +135,6 @@ struct tsdev_list { #define TS_GET_CAL _IOR(IOC_H3600_TS_MAGIC, 10, struct ts_calibration) #define TS_SET_CAL _IOW(IOC_H3600_TS_MAGIC, 11, struct ts_calibration) -static struct input_handler tsdev_handler; - static struct tsdev *tsdev_table[TSDEV_MINORS/2]; static int tsdev_fasync(int fd, struct file *file, int on) @@ -263,7 +261,7 @@ static int tsdev_ioctl(struct inode *inode, struct file *file, return retval; } -static struct file_operations tsdev_fops = { +static const struct file_operations tsdev_fops = { .owner = THIS_MODULE, .open = tsdev_open, .release = tsdev_release, @@ -370,7 +368,7 @@ static void tsdev_event(struct input_handle *handle, unsigned int type, static struct input_handle *tsdev_connect(struct input_handler *handler, struct input_dev *dev, - struct input_device_id *id) + const struct input_device_id *id) { struct tsdev *tsdev; struct class_device *cdev; @@ -443,7 +441,7 @@ static void tsdev_disconnect(struct input_handle *handle) tsdev_free(tsdev); } -static struct input_device_id tsdev_ids[] = { +static const struct input_device_id tsdev_ids[] = { { .flags = INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT | INPUT_DEVICE_ID_MATCH_RELBIT, .evbit = { BIT(EV_KEY) | BIT(EV_REL) }, |