Skip to content

Commit

Permalink
HID: usbhid: use to_usb_device
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geliang Tang authored and Jiri Kosina committed Dec 28, 2015
1 parent e3fed74 commit 7775fb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hid/usbhid/usbhid.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 7775fb9

Please sign in to comment.