From: Geliang Tang Date: Wed, 23 Dec 2015 13:26:53 +0000 (+0800) Subject: HID: usbhid: use to_usb_device X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7775fb929d959eade7c705e27a0a759997463da8;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git HID: usbhid: use to_usb_device Use to_usb_device() instead of open-coding it. Signed-off-by: Geliang Tang Signed-off-by: Jiri Kosina --- diff --git a/drivers/hid/usbhid/usbhid.h b/drivers/hid/usbhid/usbhid.h index 807922b49aa4..fa47d666cfcf 100644 --- a/drivers/hid/usbhid/usbhid.h +++ b/drivers/hid/usbhid/usbhid.h @@ -96,7 +96,7 @@ struct usbhid_device { }; #define hid_to_usb_dev(hid_dev) \ - container_of(hid_dev->dev.parent->parent, struct usb_device, dev) + to_usb_device(hid_dev->dev.parent->parent) #endif