diff options
author | Geliang Tang <geliangtang@163.com> | 2015-12-23 16:26:53 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-12-28 15:13:20 +0300 |
commit | 7775fb929d959eade7c705e27a0a759997463da8 (patch) | |
tree | b2f9de38cef0bc65424150fb494da57232b59dbd /drivers/hid/usbhid | |
parent | e3fed74894c725fb85d7315aa0c01df9b59b7a9d (diff) | |
download | linux-7775fb929d959eade7c705e27a0a759997463da8.tar.xz |
HID: usbhid: use to_usb_device
Use to_usb_device() instead of open-coding it.
Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/usbhid')
-rw-r--r-- | drivers/hid/usbhid/usbhid.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 |