diff options
author | Geliang Tang <geliangtang@163.com> | 2015-12-23 21:26:53 +0800 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-12-28 13:13:20 +0100 |
commit | 7775fb929d959eade7c705e27a0a759997463da8 (patch) | |
tree | b2f9de38cef0bc65424150fb494da57232b59dbd /drivers | |
parent | e3fed74894c725fb85d7315aa0c01df9b59b7a9d (diff) | |
download | op-kernel-dev-7775fb929d959eade7c705e27a0a759997463da8.zip op-kernel-dev-7775fb929d959eade7c705e27a0a759997463da8.tar.gz |
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')
-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 807922b..fa47d66 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 |