aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/hiddev.h
diff options
context:
space:
mode:
authorAntonio Ospite <ospite@studenti.unina.it>2008-10-02 16:14:54 -0400
committerJiri Kosina <jkosina@suse.cz>2008-10-14 17:51:01 -0400
commit34a5ceee5eafe8cfa650d333304ce84a573ff7f0 (patch)
tree8761735441e67a5da1fbe4646ed2c1912cdad6b3 /include/linux/hiddev.h
parent795750197f240ca2a3f064c0210c4efd40dbaed3 (diff)
HID: hiddev.h: Fix mixed space and tabs in example code.
Fix mixed space and tabs in example code. 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.h38
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