HID: export hidinput_calc_abs_res
authorBenjamin Tissoires <benjamin.tissoires@gmail.com>
Wed, 14 Nov 2012 15:59:13 +0000 (16:59 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 15 Nov 2012 09:06:28 +0000 (10:06 +0100)
commit37cf6e6fc34e2fca4e7c565697e7cd5c317bc316
tree8a33a35b0e8cfbc95ac8e7ea79141ef0c05edc1d
parent976bacef40c66443173283cc02b537e37a62c981
HID: export hidinput_calc_abs_res

Exporting the function allows us to calculate the resolution in third
party drivers like hid-multitouch.
This patch also complete the function with additional valid axes.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input.c
drivers/hid/hid-multitouch.c
include/linux/hid.h