projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3fed74
)
HID: usbhid: use to_usb_device
author
Geliang Tang
<geliangtang@163.com>
Wed, 23 Dec 2015 13:26:53 +0000
(21:26 +0800)
committer
Jiri Kosina
<jkosina@suse.cz>
Mon, 28 Dec 2015 12:13:20 +0000
(13:13 +0100)
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>
drivers/hid/usbhid/usbhid.h
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hid/usbhid/usbhid.h
b/drivers/hid/usbhid/usbhid.h
index 807922b49aa494afd09363d941e85dac2f7d6fe0..fa47d666cfcf2c93334276715e86d8fca41f39f0 100644
(file)
--- 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