summaryrefslogtreecommitdiffstats
path: root/include/linux/input.h
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2008-04-02 00:41:00 -0400
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2008-04-02 00:41:00 -0400
commit3797fec17193e05dee9666b990d6c84e16b188b3 (patch)
tree59004514d9f5dbaed0825a442c1334afeb1c82ab /include/linux/input.h
parenta7097ff89c3204737a07eecbc83f9ae6002cc534 (diff)
downloadop-kernel-dev-3797fec17193e05dee9666b990d6c84e16b188b3.zip
op-kernel-dev-3797fec17193e05dee9666b990d6c84e16b188b3.tar.gz
Input: remove private member from input_dev structure
Everyone should be using input_{get|set}_drvdata() by now. Alias them to dev_{get|set}_drvdata() and remove ->private. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/input.h')
-rw-r--r--include/linux/input.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/linux/input.h b/include/linux/input.h
index cae2c35..28a094f 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -1025,10 +1025,6 @@ struct ff_effect {
* @node: used to place the device onto input_dev_list
*/
struct input_dev {
- /* private: */
- void *private; /* do not use */
- /* public: */
-
const char *name;
const char *phys;
const char *uniq;
@@ -1238,12 +1234,12 @@ static inline void input_put_device(struct input_dev *dev)
static inline void *input_get_drvdata(struct input_dev *dev)
{
- return dev->private;
+ return dev_get_drvdata(&dev->dev);
}
static inline void input_set_drvdata(struct input_dev *dev, void *data)
{
- dev->private = data;
+ dev_set_drvdata(&dev->dev, data);
}
int __must_check input_register_device(struct input_dev *);
OpenPOWER on IntegriCloud