/* Return the 'period' to use for this qset. The minimum interval for the endpoint is used so whatever urbs are submitted the device is polled often enough.  */
static int qset_get_period(struct whc *whc, struct whc_qset *qset)
/* Return the 'period' to use for this qset. The minimum interval for the endpoint is used so whatever urbs are submitted the device is polled often enough.  */
static int qset_get_period(struct whc *whc, struct whc_qset *qset)
{
	uint8_t bInterval = qset->ep->desc.bInterval;
	if (bInterval < 6)
		bInterval = 6;
	if (bInterval > 10)
		bInterval = 10;
	return bInterval - 6;
}