aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hiddev.h
diff options
context:
space:
mode:
authorAntonio Ospite <ospite@studenti.unina.it>2008-10-02 16:15:02 -0400
committerJiri Kosina <jkosina@suse.cz>2008-10-14 17:51:02 -0400
commitdded364bf4e1f0de67d7d7b9e77c06b23a9f081f (patch)
tree4b50bd64614d804d08a01d72202f846cd1f45086 /include/linux/hiddev.h
parent34a5ceee5eafe8cfa650d333304ce84a573ff7f0 (diff)
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/linux/hiddev.h')
-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 7a9ba2944127..c760ae0eb6a1 100644
--- a/include/linux/hiddev.h
+++ b/include/linux/hiddev.h
@@ -193,6 +193,8 @@ struct hiddev_usage_ref_multi {
193 * finfo.field_index = i; 193 * finfo.field_index = i;
194 * ioctl(fd, HIDIOCGFIELDINFO, &finfo); 194 * ioctl(fd, HIDIOCGFIELDINFO, &finfo);
195 * for (j = 0; j < finfo.maxusage; j++) { 195 * for (j = 0; j < finfo.maxusage; j++) {
196 * uref.report_type = rinfo.report_type;
197 * uref.report_id = rinfo.report_id;
196 * uref.field_index = i; 198 * uref.field_index = i;
197 * uref.usage_index = j; 199 * uref.usage_index = j;
198 * ioctl(fd, HIDIOCGUCODE, &uref); 200 * ioctl(fd, HIDIOCGUCODE, &uref);