aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAntonio Ospite <ospite@studenti.unina.it>2008-10-02 22:15:02 +0200
committerJiri Kosina <jkosina@suse.cz>2008-10-14 23:51:02 +0200
commitdded364bf4e1f0de67d7d7b9e77c06b23a9f081f (patch)
tree4b50bd64614d804d08a01d72202f846cd1f45086 /include
parent34a5ceee5eafe8cfa650d333304ce84a573ff7f0 (diff)
downloadkernel_samsung_espresso10-dded364bf4e1f0de67d7d7b9e77c06b23a9f081f.zip
kernel_samsung_espresso10-dded364bf4e1f0de67d7d7b9e77c06b23a9f081f.tar.gz
kernel_samsung_espresso10-dded364bf4e1f0de67d7d7b9e77c06b23a9f081f.tar.bz2
HID: hiddev.h: Fix example code.
Fix hiddev.h example code. To get the correct usage code, you need to set report_type and report_id. Signed-off-by: Antonio Ospite <ospite@studenti.unina.it> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include')
-rw-r--r--include/linux/hiddev.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/hiddev.h b/include/linux/hiddev.h
index 7a9ba29..c760ae0 100644
--- a/include/linux/hiddev.h
+++ b/include/linux/hiddev.h
@@ -193,6 +193,8 @@ struct hiddev_usage_ref_multi {
* finfo.field_index = i;
* ioctl(fd, HIDIOCGFIELDINFO, &finfo);
* for (j = 0; j < finfo.maxusage; j++) {
+ * uref.report_type = rinfo.report_type;
+ * uref.report_id = rinfo.report_id;
* uref.field_index = i;
* uref.usage_index = j;
* ioctl(fd, HIDIOCGUCODE, &uref);