Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: USB devices - switch to using input_dev->dev.parent

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 -13
+1 -1
drivers/usb/input/acecad.c
··· 185 185 input_dev->name = acecad->name; 186 186 input_dev->phys = acecad->phys; 187 187 usb_to_input_id(dev, &input_dev->id); 188 - input_dev->cdev.dev = &intf->dev; 188 + input_dev->dev.parent = &intf->dev; 189 189 190 190 input_set_drvdata(input_dev, acecad); 191 191
+1 -1
drivers/usb/input/aiptek.c
··· 2044 2044 inputdev->name = "Aiptek"; 2045 2045 inputdev->phys = aiptek->features.usbPath; 2046 2046 usb_to_input_id(usbdev, &inputdev->id); 2047 - inputdev->cdev.dev = &intf->dev; 2047 + inputdev->dev.parent = &intf->dev; 2048 2048 2049 2049 input_set_drvdata(inputdev, aiptek); 2050 2050
+1 -1
drivers/usb/input/appletouch.c
··· 584 584 input_dev->name = "appletouch"; 585 585 input_dev->phys = dev->phys; 586 586 usb_to_input_id(dev->udev, &input_dev->id); 587 - input_dev->cdev.dev = &iface->dev; 587 + input_dev->dev.parent = &iface->dev; 588 588 589 589 input_set_drvdata(input_dev, dev); 590 590
+1 -1
drivers/usb/input/ati_remote.c
··· 662 662 idev->phys = ati_remote->phys; 663 663 664 664 usb_to_input_id(ati_remote->udev, &idev->id); 665 - idev->cdev.dev = &ati_remote->udev->dev; 665 + idev->dev.parent = &ati_remote->udev->dev; 666 666 } 667 667 668 668 static int ati_remote_initialize(struct ati_remote *ati_remote)
+1 -1
drivers/usb/input/ati_remote2.c
··· 362 362 idev->phys = ar2->phys; 363 363 364 364 usb_to_input_id(ar2->udev, &idev->id); 365 - idev->cdev.dev = &ar2->udev->dev; 365 + idev->dev.parent = &ar2->udev->dev; 366 366 367 367 retval = input_register_device(idev); 368 368 if (retval)
+1 -1
drivers/usb/input/gtco.c
··· 952 952 953 953 /* Set input device required ID information */ 954 954 usb_to_input_id(gtco->usbdev, &input_dev->id); 955 - input_dev->cdev.dev = &usbinterface->dev; 955 + input_dev->dev.parent = &usbinterface->dev; 956 956 957 957 /* Setup the URB, it will be posted later on open of input device */ 958 958 endpoint = &usbinterface->altsetting[0].endpoint[0].desc;
+1 -1
drivers/usb/input/kbtab.c
··· 146 146 input_dev->name = "KB Gear Tablet"; 147 147 input_dev->phys = kbtab->phys; 148 148 usb_to_input_id(dev, &input_dev->id); 149 - input_dev->cdev.dev = &intf->dev; 149 + input_dev->dev.parent = &intf->dev; 150 150 151 151 input_set_drvdata(input_dev, kbtab); 152 152
+1 -1
drivers/usb/input/keyspan_remote.c
··· 495 495 input_dev->name = remote->name; 496 496 input_dev->phys = remote->phys; 497 497 usb_to_input_id(udev, &input_dev->id); 498 - input_dev->cdev.dev = &interface->dev; 498 + input_dev->dev.parent = &interface->dev; 499 499 500 500 input_dev->evbit[0] = BIT(EV_KEY); /* We will only report KEY events. */ 501 501 for (i = 0; i < ARRAY_SIZE(keyspan_key_table); i++)
+1 -1
drivers/usb/input/powermate.c
··· 359 359 360 360 input_dev->phys = pm->phys; 361 361 usb_to_input_id(udev, &input_dev->id); 362 - input_dev->cdev.dev = &intf->dev; 362 + input_dev->dev.parent = &intf->dev; 363 363 364 364 input_set_drvdata(input_dev, pm); 365 365
+1 -1
drivers/usb/input/usbtouchscreen.c
··· 740 740 input_dev->name = usbtouch->name; 741 741 input_dev->phys = usbtouch->phys; 742 742 usb_to_input_id(udev, &input_dev->id); 743 - input_dev->cdev.dev = &intf->dev; 743 + input_dev->dev.parent = &intf->dev; 744 744 745 745 input_set_drvdata(input_dev, usbtouch); 746 746
+1 -1
drivers/usb/input/wacom_sys.c
··· 230 230 wacom->wacom_wac = wacom_wac; 231 231 usb_to_input_id(dev, &input_dev->id); 232 232 233 - input_dev->cdev.dev = &intf->dev; 233 + input_dev->dev.parent = &intf->dev; 234 234 235 235 input_set_drvdata(input_dev, wacom); 236 236
+1 -1
drivers/usb/input/xpad.c
··· 345 345 input_dev->name = xpad_device[i].name; 346 346 input_dev->phys = xpad->phys; 347 347 usb_to_input_id(udev, &input_dev->id); 348 - input_dev->cdev.dev = &intf->dev; 348 + input_dev->dev.parent = &intf->dev; 349 349 350 350 input_set_drvdata(input_dev, xpad); 351 351
+1 -1
drivers/usb/input/yealink.c
··· 937 937 input_dev->name = nfo->name; 938 938 input_dev->phys = yld->phys; 939 939 usb_to_input_id(udev, &input_dev->id); 940 - input_dev->cdev.dev = &intf->dev; 940 + input_dev->dev.parent = &intf->dev; 941 941 942 942 input_set_drvdata(input_dev, yld); 943 943