X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=drivers%2Fhid%2Fhid-wiimote.h;h=510ca77fe14e113a4cc22ec65a96f6e66d2899c1;hb=6b5a12dbca7a8681ecb78dbebaedc1f8364ebd10;hp=875694d43e4d9249ccc84e7e447d619fb0ba22d0;hpb=87028bd117a63a608ab690e1a82ffb7223127fe6;p=linux-2.6-microblaze.git diff --git a/drivers/hid/hid-wiimote.h b/drivers/hid/hid-wiimote.h index 875694d43e4d..510ca77fe14e 100644 --- a/drivers/hid/hid-wiimote.h +++ b/drivers/hid/hid-wiimote.h @@ -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);