diff options
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/hiddev.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/include/linux/hiddev.h b/include/linux/hiddev.h index 6ae77b3468f9..7a9ba2944127 100644 --- a/include/linux/hiddev.h +++ b/include/linux/hiddev.h | |||
@@ -182,26 +182,26 @@ struct hiddev_usage_ref_multi { | |||
182 | /* To traverse the input report descriptor info for a HID device, perform the | 182 | /* To traverse the input report descriptor info for a HID device, perform the |
183 | * following: | 183 | * following: |
184 | * | 184 | * |
185 | * rinfo.report_type = HID_REPORT_TYPE_INPUT; | 185 | * rinfo.report_type = HID_REPORT_TYPE_INPUT; |
186 | * rinfo.report_id = HID_REPORT_ID_FIRST; | 186 | * rinfo.report_id = HID_REPORT_ID_FIRST; |
187 | * ret = ioctl(fd, HIDIOCGREPORTINFO, &rinfo); | 187 | * ret = ioctl(fd, HIDIOCGREPORTINFO, &rinfo); |
188 | * | 188 | * |
189 | * while (ret >= 0) { | 189 | * while (ret >= 0) { |
190 | * for (i = 0; i < rinfo.num_fields; i++) { | 190 | * for (i = 0; i < rinfo.num_fields; i++) { |
191 | * finfo.report_type = rinfo.report_type; | 191 | * finfo.report_type = rinfo.report_type; |
192 | * finfo.report_id = rinfo.report_id; | 192 | * finfo.report_id = rinfo.report_id; |
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.field_index = i; | 196 | * uref.field_index = i; |
197 | * uref.usage_index = j; | 197 | * uref.usage_index = j; |
198 | * ioctl(fd, HIDIOCGUCODE, &uref); | 198 | * ioctl(fd, HIDIOCGUCODE, &uref); |
199 | * ioctl(fd, HIDIOCGUSAGE, &uref); | 199 | * ioctl(fd, HIDIOCGUSAGE, &uref); |
200 | * } | 200 | * } |
201 | * } | 201 | * } |
202 | * rinfo.report_id |= HID_REPORT_ID_NEXT; | 202 | * rinfo.report_id |= HID_REPORT_ID_NEXT; |
203 | * ret = ioctl(fd, HIDIOCGREPORTINFO, &rinfo); | 203 | * ret = ioctl(fd, HIDIOCGREPORTINFO, &rinfo); |
204 | * } | 204 | * } |
205 | */ | 205 | */ |
206 | 206 | ||
207 | 207 | ||