Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Antonio Ospite and committed by
Jiri Kosina
34a5ceee 79575019

+19 -19
+19 -19
include/linux/hiddev.h
··· 182 182 /* To traverse the input report descriptor info for a HID device, perform the 183 183 * following: 184 184 * 185 - * rinfo.report_type = HID_REPORT_TYPE_INPUT; 186 - * rinfo.report_id = HID_REPORT_ID_FIRST; 187 - * ret = ioctl(fd, HIDIOCGREPORTINFO, &rinfo); 185 + * rinfo.report_type = HID_REPORT_TYPE_INPUT; 186 + * rinfo.report_id = HID_REPORT_ID_FIRST; 187 + * ret = ioctl(fd, HIDIOCGREPORTINFO, &rinfo); 188 188 * 189 - * while (ret >= 0) { 190 - * for (i = 0; i < rinfo.num_fields; i++) { 191 - * finfo.report_type = rinfo.report_type; 192 - * finfo.report_id = rinfo.report_id; 193 - * finfo.field_index = i; 194 - * ioctl(fd, HIDIOCGFIELDINFO, &finfo); 195 - * for (j = 0; j < finfo.maxusage; j++) { 196 - * uref.field_index = i; 197 - * uref.usage_index = j; 198 - * ioctl(fd, HIDIOCGUCODE, &uref); 199 - * ioctl(fd, HIDIOCGUSAGE, &uref); 200 - * } 201 - * } 202 - * rinfo.report_id |= HID_REPORT_ID_NEXT; 203 - * ret = ioctl(fd, HIDIOCGREPORTINFO, &rinfo); 204 - * } 189 + * while (ret >= 0) { 190 + * for (i = 0; i < rinfo.num_fields; i++) { 191 + * finfo.report_type = rinfo.report_type; 192 + * finfo.report_id = rinfo.report_id; 193 + * finfo.field_index = i; 194 + * ioctl(fd, HIDIOCGFIELDINFO, &finfo); 195 + * for (j = 0; j < finfo.maxusage; j++) { 196 + * uref.field_index = i; 197 + * uref.usage_index = j; 198 + * ioctl(fd, HIDIOCGUCODE, &uref); 199 + * ioctl(fd, HIDIOCGUSAGE, &uref); 200 + * } 201 + * } 202 + * rinfo.report_id |= HID_REPORT_ID_NEXT; 203 + * ret = ioctl(fd, HIDIOCGREPORTINFO, &rinfo); 204 + * } 205 205 */ 206 206 207 207