Merge tag 'v4.5-rc1' into patchwork
[deliverable/linux.git] / drivers / hid / hid-wiimote.h
index 875694d43e4d9249ccc84e7e447d619fb0ba22d0..510ca77fe14e113a4cc22ec65a96f6e66d2899c1 100644 (file)
@@ -256,8 +256,7 @@ enum wiiproto_reqs {
        WIIPROTO_REQ_MAX
 };
 
-#define dev_to_wii(pdev) hid_get_drvdata(container_of(pdev, struct hid_device, \
-                                                                       dev))
+#define dev_to_wii(pdev) hid_get_drvdata(to_hid_device(pdev))
 
 void __wiimote_schedule(struct wiimote_data *wdata);
 
This page took 0.025859 seconds and 5 git commands to generate.