Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=3abccf36081ac827cf5d14db6837117f088937eb
Commit:     3abccf36081ac827cf5d14db6837117f088937eb
Parent:     5014186de89708d0e9eed60526b698d5b786b707
Author:     Dmitry Torokhov <[EMAIL PROTECTED]>
AuthorDate: Thu Apr 12 01:33:51 2007 -0400
Committer:  Dmitry Torokhov <[EMAIL PROTECTED]>
CommitDate: Thu Apr 12 01:33:51 2007 -0400

    Input: add input_{get|set}_drvdata() helpers
    
    Add helpers to set up and access driver-specific data in input
    device structure. Once conversion to struct driver is complete
    we will drop input_dev->private and will use dev_get_drvdata()
    and dev_set_drvdata().
    
    Signed-off-by: Dmitry Torokhov <[EMAIL PROTECTED]>
---
 include/linux/input.h |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/include/linux/input.h b/include/linux/input.h
index 9bd984b..d0bea97 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)
        class_device_put(&dev->cdev);
 }
 
+static inline void *input_get_drvdata(struct input_dev *dev)
+{
+       return dev->private;
+}
+
+static inline void input_set_drvdata(struct input_dev *dev, void *data)
+{
+       dev->private = data;
+}
+
 int input_register_device(struct input_dev *);
 void input_unregister_device(struct input_dev *);
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to