/* Calculates new value of xl_bit so the driver can distinguish between make/break pair of scancodes for select keys and PS/2 protocol responses.  */
static void atkbd_calculate_xl_bit(struct atkbd *atkbd, unsigned char code)
/* Calculates new value of xl_bit so the driver can distinguish between make/break pair of scancodes for select keys and PS/2 protocol responses.  */
static void atkbd_calculate_xl_bit(struct atkbd *atkbd, unsigned char code)
{
	int i;
	for (i = 0; i < ARRAY_SIZE(xl_table); i++) {
		if (!((code ^ xl_table[i]) & 0x7f)) {
			if (code & 0x80)
				__clear_bit(i, &atkbd->xl_bit);
			else
				__set_bit(i, &atkbd->xl_bit);
			break;
		}
	}
}