aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/input.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/input.h')
-rw-r--r--include/linux/input.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/linux/input.h b/include/linux/input.h
index 1d4e341b72e6..393da04f4301 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -421,7 +421,7 @@ struct input_absinfo {
421#define BTN_GEAR_UP 0x151 421#define BTN_GEAR_UP 0x151
422 422
423#define KEY_OK 0x160 423#define KEY_OK 0x160
424#define KEY_SELECT 0x161 424#define KEY_SELECT 0x161
425#define KEY_GOTO 0x162 425#define KEY_GOTO 0x162
426#define KEY_CLEAR 0x163 426#define KEY_CLEAR 0x163
427#define KEY_POWER2 0x164 427#define KEY_POWER2 0x164
@@ -929,7 +929,7 @@ struct input_dev {
929 929
930 struct input_handle *grab; 930 struct input_handle *grab;
931 931
932 struct semaphore sem; /* serializes open and close operations */ 932 struct mutex mutex; /* serializes open and close operations */
933 unsigned int users; 933 unsigned int users;
934 934
935 struct class_device cdev; 935 struct class_device cdev;
@@ -995,11 +995,6 @@ static inline void init_input_dev(struct input_dev *dev)
995 995
996struct input_dev *input_allocate_device(void); 996struct input_dev *input_allocate_device(void);
997 997
998static inline void input_free_device(struct input_dev *dev)
999{
1000 kfree(dev);
1001}
1002
1003static inline struct input_dev *input_get_device(struct input_dev *dev) 998static inline struct input_dev *input_get_device(struct input_dev *dev)
1004{ 999{
1005 return to_input_dev(class_device_get(&dev->cdev)); 1000 return to_input_dev(class_device_get(&dev->cdev));
@@ -1010,6 +1005,11 @@ static inline void input_put_device(struct input_dev *dev)
1010 class_device_put(&dev->cdev); 1005 class_device_put(&dev->cdev);
1011} 1006}
1012 1007
1008static inline void input_free_device(struct input_dev *dev)
1009{
1010 input_put_device(dev);
1011}
1012
1013int input_register_device(struct input_dev *); 1013int input_register_device(struct input_dev *);
1014void input_unregister_device(struct input_dev *); 1014void input_unregister_device(struct input_dev *);
1015 1015