Input: remove cdev from input_dev structure
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 21 Jan 2008 06:08:24 +0000 (01:08 -0500)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 21 Jan 2008 06:11:08 +0000 (01:11 -0500)
Cdev field was obsolete and provided only for backward compatibility
since conversion of input core from class devices to regular devices.
It is time to remove it.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/input.c
include/linux/input.h

index e1729e1dd9b2c567ce57f25c7880baf6f7960675..6ee8af8963f9f4fcf2a55f0ab39cff4ae56252dd 100644 (file)
@@ -1395,9 +1395,6 @@ int input_register_device(struct input_dev *dev)
        snprintf(dev->dev.bus_id, sizeof(dev->dev.bus_id),
                 "input%ld", (unsigned long) atomic_inc_return(&input_no) - 1);
 
-       if (dev->cdev.dev)
-               dev->dev.parent = dev->cdev.dev;
-
        error = device_add(&dev->dev);
        if (error)
                return error;
index 9a963fe97300b9afd557aad9d441b5ed4b8a9a3b..48937ffa977ad1f3d3a3d5311babe4dc845bbf33 100644 (file)
@@ -1018,7 +1018,6 @@ struct ff_effect {
  * @going_away: marks devices that are in a middle of unregistering and
  *     causes input_open_device*() fail with -ENODEV.
  * @dev: driver model's view of this device
- * @cdev: union for struct device pointer
  * @h_list: list of input handles associated with the device. When
  *     accessing the list dev->mutex must be held
  * @node: used to place the device onto input_dev_list
@@ -1083,9 +1082,6 @@ struct input_dev {
        int going_away;
 
        struct device dev;
-       union {                 /* temporarily so while we switching to struct device */
-               struct device *dev;
-       } cdev;
 
        struct list_head        h_list;
        struct list_head        node;
This page took 0.029575 seconds and 5 git commands to generate.