diff options
Diffstat (limited to 'drivers/input/tsdev.c')
-rw-r--r-- | drivers/input/tsdev.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/input/tsdev.c b/drivers/input/tsdev.c index 00e3929c6288..a730c461227f 100644 --- a/drivers/input/tsdev.c +++ b/drivers/input/tsdev.c | |||
@@ -135,8 +135,6 @@ struct tsdev_list { | |||
135 | #define TS_GET_CAL _IOR(IOC_H3600_TS_MAGIC, 10, struct ts_calibration) | 135 | #define TS_GET_CAL _IOR(IOC_H3600_TS_MAGIC, 10, struct ts_calibration) |
136 | #define TS_SET_CAL _IOW(IOC_H3600_TS_MAGIC, 11, struct ts_calibration) | 136 | #define TS_SET_CAL _IOW(IOC_H3600_TS_MAGIC, 11, struct ts_calibration) |
137 | 137 | ||
138 | static struct input_handler tsdev_handler; | ||
139 | |||
140 | static struct tsdev *tsdev_table[TSDEV_MINORS/2]; | 138 | static struct tsdev *tsdev_table[TSDEV_MINORS/2]; |
141 | 139 | ||
142 | static int tsdev_fasync(int fd, struct file *file, int on) | 140 | 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, | |||
263 | return retval; | 261 | return retval; |
264 | } | 262 | } |
265 | 263 | ||
266 | static struct file_operations tsdev_fops = { | 264 | static const struct file_operations tsdev_fops = { |
267 | .owner = THIS_MODULE, | 265 | .owner = THIS_MODULE, |
268 | .open = tsdev_open, | 266 | .open = tsdev_open, |
269 | .release = tsdev_release, | 267 | .release = tsdev_release, |
@@ -370,7 +368,7 @@ static void tsdev_event(struct input_handle *handle, unsigned int type, | |||
370 | 368 | ||
371 | static struct input_handle *tsdev_connect(struct input_handler *handler, | 369 | static struct input_handle *tsdev_connect(struct input_handler *handler, |
372 | struct input_dev *dev, | 370 | struct input_dev *dev, |
373 | struct input_device_id *id) | 371 | const struct input_device_id *id) |
374 | { | 372 | { |
375 | struct tsdev *tsdev; | 373 | struct tsdev *tsdev; |
376 | struct class_device *cdev; | 374 | struct class_device *cdev; |
@@ -443,7 +441,7 @@ static void tsdev_disconnect(struct input_handle *handle) | |||
443 | tsdev_free(tsdev); | 441 | tsdev_free(tsdev); |
444 | } | 442 | } |
445 | 443 | ||
446 | static struct input_device_id tsdev_ids[] = { | 444 | static const struct input_device_id tsdev_ids[] = { |
447 | { | 445 | { |
448 | .flags = INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT | INPUT_DEVICE_ID_MATCH_RELBIT, | 446 | .flags = INPUT_DEVICE_ID_MATCH_EVBIT | INPUT_DEVICE_ID_MATCH_KEYBIT | INPUT_DEVICE_ID_MATCH_RELBIT, |
449 | .evbit = { BIT(EV_KEY) | BIT(EV_REL) }, | 447 | .evbit = { BIT(EV_KEY) | BIT(EV_REL) }, |
@@ -481,9 +479,7 @@ static struct input_handler tsdev_handler = { | |||
481 | 479 | ||
482 | static int __init tsdev_init(void) | 480 | static int __init tsdev_init(void) |
483 | { | 481 | { |
484 | input_register_handler(&tsdev_handler); | 482 | return input_register_handler(&tsdev_handler); |
485 | printk(KERN_INFO "ts: Compaq touchscreen protocol output\n"); | ||
486 | return 0; | ||
487 | } | 483 | } |
488 | 484 | ||
489 | static void __exit tsdev_exit(void) | 485 | static void __exit tsdev_exit(void) |