Skip to content

Commit 7775fb9

Browse files
geliangtangJiri Kosina
authored andcommitted
HID: usbhid: use to_usb_device
Use to_usb_device() instead of open-coding it. Signed-off-by: Geliang Tang <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent e3fed74 commit 7775fb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/usbhid/usbhid.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ struct usbhid_device {
9696
};
9797

9898
#define hid_to_usb_dev(hid_dev) \
99-
container_of(hid_dev->dev.parent->parent, struct usb_device, dev)
99+
to_usb_device(hid_dev->dev.parent->parent)
100100

101101
#endif
102102

0 commit comments

Comments
 (0)