/* adi_init_digital() sends a trigger & delay sequence to reset and initialize a Logitech joystick into digital mode.  */
static void adi_init_digital(struct gameport *gameport)
/* adi_init_digital() sends a trigger & delay sequence to reset and initialize a Logitech joystick into digital mode.  */
static void adi_init_digital(struct gameport *gameport)
{
	int seq[] = { 4, -2, -3, 10, -6, -11, -7, -9, 11, 0 };
	int i;
	for (i = 0; seq[i]; i++) {
		gameport_trigger(gameport);
		if (seq[i] > 0)
			msleep(seq[i]);
		if (seq[i] < 0) {
			mdelay(-seq[i]);
			udelay(-seq[i]*14);
		}
	}
}