HID: make hid_report_len as a static inline function in hid.h
authorMathieu Magnaudet <mathieu.magnaudet@gmail.com>
Thu, 27 Nov 2014 15:02:36 +0000 (16:02 +0100)
committerJiri Kosina <jkosina@suse.cz>
Mon, 1 Dec 2014 20:34:17 +0000 (21:34 +0100)
commitdabb05c6670e6e4415d7b56cd5864a5dbd90207f
treeca80d7c8cf44f32bb0c870855ae87452c8a004c3
parentda10bc252476a8d1d1bdf7b94502ad2cbd7f30b1
HID: make hid_report_len as a static inline function in hid.h

In several hid drivers it is necessary to calculate the length of an
hid_report. This patch exports the existing static function hid_report_len of
hid-core.c as an inline function in hid.h

Signed-off-by: Mathieu Magnaudet <mathieu.magnaudet@enac.fr>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Reviewed-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-core.c
drivers/hid/hid-input.c
drivers/hid/hid-multitouch.c
drivers/hid/usbhid/hid-core.c
drivers/hid/wacom_sys.c
include/linux/hid.h