mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 09:19:51 +00:00
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>
This commit is contained in:
parent
e3fed74894
commit
7775fb929d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue