HID: switch to using input_dev->dev.parent
[safe/jmp/linux-2.6] / drivers / hid / usbhid / hid-tmff.c
index ab67331..ab5ba6e 100644 (file)
@@ -59,7 +59,7 @@ static inline int hid_tmff_scale(unsigned int in, int minimum, int maximum)
 
 static int hid_tmff_play(struct input_dev *dev, void *data, struct ff_effect *effect)
 {
-       struct hid_device *hid = dev->private;
+       struct hid_device *hid = input_get_drvdata(dev);
        struct tmff_device *tmff = data;
        int left, right;        /* Rumbling */