]> git.karo-electronics.de Git - karo-tx-linux.git/commit
HID: fix return value of hidraw_report_event() when !CONFIG_HIDRAW
authorJiri Kosina <jkosina@suse.cz>
Mon, 30 Apr 2012 08:39:17 +0000 (10:39 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 10 Oct 2012 02:31:16 +0000 (03:31 +0100)
commit9c48cc08ae1255d4b244529408f52d26673e1ccb
tree44ccd6ccd5fb236c47c1e2cfc8d78bd784f2b9a8
parentfb1c3652bb3e6690e50520c2d9a1493f15d93722
HID: fix return value of hidraw_report_event() when !CONFIG_HIDRAW

commit d6d7c873529abd622897cad5e36f1fd7d82f5110 upstream.

Commit b6787242f327 ("HID: hidraw: add proper error handling to raw event
reporting") forgot to update the static inline version of
hidraw_report_event() for the case when CONFIG_HIDRAW is unset. Fix that
up.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
include/linux/hidraw.h