HID: usbhid: inline some simple routines
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 19 Jul 2012 20:08:39 +0000 (16:08 -0400)
committerJiri Kosina <jkosina@suse.cz>
Fri, 20 Jul 2012 09:24:24 +0000 (11:24 +0200)
commit93101af31bc5df4486103f6b3ef212aaa5341b09
tree7d6b54fad4f755732717206d178c9a37d488c7a1
parent01a7c984e86fd45b760bb0da8b635059dff602e1
HID: usbhid: inline some simple routines

This patch (as1594) simplifies the usbhid driver by inlining a couple
of routines.  As a result of an earlier patch, irq_out_pump_restart()
and ctrl_pump_restart() are each used in only one place.  Since they
don't really do what their names say, and since they each involve only
about two lines of actual code, there's no reason to keep them as
separate functions.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
CC: Oliver Neukum <oliver@neukum.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/hid-core.c