/* Return index into pidff_reports for the given usage  */
static int pidff_check_usage(int usage)
/* Return index into pidff_reports for the given usage  */
static int pidff_check_usage(int usage)
{
	int i;
	for (i = 0; i < sizeof(pidff_reports); i++)
		if (usage == (HID_UP_PID | pidff_reports[i]))
			return i;
	return -1;
}