OSDN Git Service

Input: USB devices - switch to using input_dev->dev.parent
authorDmitry Torokhov <dtor@insightbb.com>
Thu, 12 Apr 2007 05:35:03 +0000 (01:35 -0400)
committerDmitry Torokhov <dtor@insightbb.com>
Thu, 12 Apr 2007 05:35:03 +0000 (01:35 -0400)
In preparation for struct class_device -> struct device input
core conversion, switch to using input_dev->dev.parent when
specifying device position in sysfs tree.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
13 files changed:
drivers/usb/input/acecad.c
drivers/usb/input/aiptek.c
drivers/usb/input/appletouch.c
drivers/usb/input/ati_remote.c
drivers/usb/input/ati_remote2.c
drivers/usb/input/gtco.c
drivers/usb/input/kbtab.c
drivers/usb/input/keyspan_remote.c
drivers/usb/input/powermate.c
drivers/usb/input/usbtouchscreen.c
drivers/usb/input/wacom_sys.c
drivers/usb/input/xpad.c
drivers/usb/input/yealink.c

index 75972b7..be8e924 100644 (file)
@@ -185,7 +185,7 @@ static int usb_acecad_probe(struct usb_interface *intf, const struct usb_device_
        input_dev->name = acecad->name;
        input_dev->phys = acecad->phys;
        usb_to_input_id(dev, &input_dev->id);
-       input_dev->cdev.dev = &intf->dev;
+       input_dev->dev.parent = &intf->dev;
 
        input_set_drvdata(input_dev, acecad);
 
index 8b33a8e..cc0a498 100644 (file)
@@ -2044,7 +2044,7 @@ aiptek_probe(struct usb_interface *intf, const struct usb_device_id *id)
        inputdev->name = "Aiptek";
        inputdev->phys = aiptek->features.usbPath;
        usb_to_input_id(usbdev, &inputdev->id);
-       inputdev->cdev.dev = &intf->dev;
+       inputdev->dev.parent = &intf->dev;
 
        input_set_drvdata(inputdev, aiptek);
 
index ef6166a..e321526 100644 (file)
@@ -584,7 +584,7 @@ static int atp_probe(struct usb_interface *iface, const struct usb_device_id *id
        input_dev->name = "appletouch";
        input_dev->phys = dev->phys;
        usb_to_input_id(dev->udev, &input_dev->id);
-       input_dev->cdev.dev = &iface->dev;
+       input_dev->dev.parent = &iface->dev;
 
        input_set_drvdata(input_dev, dev);
 
index 876b272..5d3ddb9 100644 (file)
@@ -662,7 +662,7 @@ static void ati_remote_input_init(struct ati_remote *ati_remote)
        idev->phys = ati_remote->phys;
 
        usb_to_input_id(ati_remote->udev, &idev->id);
-       idev->cdev.dev = &ati_remote->udev->dev;
+       idev->dev.parent = &ati_remote->udev->dev;
 }
 
 static int ati_remote_initialize(struct ati_remote *ati_remote)
index 3c38ac6..a9032aa 100644 (file)
@@ -362,7 +362,7 @@ static int ati_remote2_input_init(struct ati_remote2 *ar2)
        idev->phys = ar2->phys;
 
        usb_to_input_id(ar2->udev, &idev->id);
-       idev->cdev.dev = &ar2->udev->dev;
+       idev->dev.parent = &ar2->udev->dev;
 
        retval = input_register_device(idev);
        if (retval)
index 75cce2a..dbd207e 100644 (file)
@@ -952,7 +952,7 @@ static int gtco_probe(struct usb_interface *usbinterface,
 
        /* Set input device required ID information */
        usb_to_input_id(gtco->usbdev, &input_dev->id);
-       input_dev->cdev.dev = &usbinterface->dev;
+       input_dev->dev.parent = &usbinterface->dev;
 
        /* Setup the URB, it will be posted later on open of input device */
        endpoint = &usbinterface->altsetting[0].endpoint[0].desc;
index 7ec999a..c4781b9 100644 (file)
@@ -146,7 +146,7 @@ static int kbtab_probe(struct usb_interface *intf, const struct usb_device_id *i
        input_dev->name = "KB Gear Tablet";
        input_dev->phys = kbtab->phys;
        usb_to_input_id(dev, &input_dev->id);
-       input_dev->cdev.dev = &intf->dev;
+       input_dev->dev.parent = &intf->dev;
 
        input_set_drvdata(input_dev, kbtab);
 
index daf8f21..1bffc9f 100644 (file)
@@ -495,7 +495,7 @@ static int keyspan_probe(struct usb_interface *interface, const struct usb_devic
        input_dev->name = remote->name;
        input_dev->phys = remote->phys;
        usb_to_input_id(udev, &input_dev->id);
-       input_dev->cdev.dev = &interface->dev;
+       input_dev->dev.parent = &interface->dev;
 
        input_dev->evbit[0] = BIT(EV_KEY);              /* We will only report KEY events. */
        for (i = 0; i < ARRAY_SIZE(keyspan_key_table); i++)
index f951a44..4f93a76 100644 (file)
@@ -359,7 +359,7 @@ static int powermate_probe(struct usb_interface *intf, const struct usb_device_i
 
        input_dev->phys = pm->phys;
        usb_to_input_id(udev, &input_dev->id);
-       input_dev->cdev.dev = &intf->dev;
+       input_dev->dev.parent = &intf->dev;
 
        input_set_drvdata(input_dev, pm);
 
index 1696927..e082941 100644 (file)
@@ -740,7 +740,7 @@ static int usbtouch_probe(struct usb_interface *intf,
        input_dev->name = usbtouch->name;
        input_dev->phys = usbtouch->phys;
        usb_to_input_id(udev, &input_dev->id);
-       input_dev->cdev.dev = &intf->dev;
+       input_dev->dev.parent = &intf->dev;
 
        input_set_drvdata(input_dev, usbtouch);
 
index 7793ffb..1fe4820 100644 (file)
@@ -230,7 +230,7 @@ static int wacom_probe(struct usb_interface *intf, const struct usb_device_id *i
        wacom->wacom_wac = wacom_wac;
        usb_to_input_id(dev, &input_dev->id);
 
-       input_dev->cdev.dev = &intf->dev;
+       input_dev->dev.parent = &intf->dev;
 
        input_set_drvdata(input_dev, wacom);
 
index b001796..7357239 100644 (file)
@@ -345,7 +345,7 @@ static int xpad_probe(struct usb_interface *intf, const struct usb_device_id *id
        input_dev->name = xpad_device[i].name;
        input_dev->phys = xpad->phys;
        usb_to_input_id(udev, &input_dev->id);
-       input_dev->cdev.dev = &intf->dev;
+       input_dev->dev.parent = &intf->dev;
 
        input_set_drvdata(input_dev, xpad);
 
index 294224e..c54f1a5 100644 (file)
@@ -937,7 +937,7 @@ static int usb_probe(struct usb_interface *intf, const struct usb_device_id *id)
        input_dev->name = nfo->name;
        input_dev->phys = yld->phys;
        usb_to_input_id(udev, &input_dev->id);
-       input_dev->cdev.dev = &intf->dev;
+       input_dev->dev.parent = &intf->dev;
 
        input_set_drvdata(input_dev, yld);