Commit 7775fb92 authored by Geliang Tang's avatar Geliang Tang Committed by Jiri Kosina

HID: usbhid: use to_usb_device

Use to_usb_device() instead of open-coding it.
Signed-off-by: default avatarGeliang Tang <geliangtang@163.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent e3fed748
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment