summaryrefslogtreecommitdiffstats
path: root/include/linux/hid.h
diff options
context:
space:
mode:
authorGoffredo Baroncelli <kreijack@inwind.it>2015-05-30 11:00:26 +0200
committerJiri Kosina <jkosina@suse.cz>2015-06-01 14:33:35 +0200
commit04fba7864ffcceae8a5f78d88ae1fd8d682a5123 (patch)
treebd8d85426a6e9cc0a8f67165b0ffa4d1325731bf /include/linux/hid.h
parentf4e1eb966256b15335054fac7b304f14e4965b5d (diff)
downloadlinux-04fba7864ffcceae8a5f78d88ae1fd8d682a5123.tar.gz
linux-04fba7864ffcceae8a5f78d88ae1fd8d682a5123.tar.bz2
linux-04fba7864ffcceae8a5f78d88ae1fd8d682a5123.zip
HID: Export hid_field_extract()
Rename the function extract() to hid_field_extract(), make it external linkage to allow the use from other modules. Suggested-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Goffredo Baroncelli <kreijack@inwind.it> Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r--include/linux/hid.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h
index 176b43670e5d..f17980de2662 100644
--- a/include/linux/hid.h
+++ b/include/linux/hid.h
@@ -815,6 +815,8 @@ void hid_disconnect(struct hid_device *hid);
const struct hid_device_id *hid_match_id(struct hid_device *hdev,
const struct hid_device_id *id);
s32 hid_snto32(__u32 value, unsigned n);
+__u32 hid_field_extract(const struct hid_device *hid, __u8 *report,
+ unsigned offset, unsigned n);
/**
* hid_device_io_start - enable HID input during probe, remove