aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/input.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/input.h b/include/linux/input.h
index 9bd984b2d122..d0bea9755186 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -1097,6 +1097,16 @@ static inline void input_put_device(struct input_dev *dev)
1097 class_device_put(&dev->cdev); 1097 class_device_put(&dev->cdev);
1098} 1098}
1099 1099
1100static inline void *input_get_drvdata(struct input_dev *dev)
1101{
1102 return dev->private;
1103}
1104
1105static inline void input_set_drvdata(struct input_dev *dev, void *data)
1106{
1107 dev->private = data;
1108}
1109
1100int input_register_device(struct input_dev *); 1110int input_register_device(struct input_dev *);
1101void input_unregister_device(struct input_dev *); 1111void input_unregister_device(struct input_dev *);
1102 1112