/* Encode the scancode, 0xe0 prefix, and high bit into a single integer, keeping kernel 2.4 compatibility for set 2  */
static unsigned int atkbd_compat_scancode(struct atkbd *atkbd, unsigned int code)
/* Encode the scancode, 0xe0 prefix, and high bit into a single integer, keeping kernel 2.4 compatibility for set 2  */
static unsigned int atkbd_compat_scancode(struct atkbd *atkbd, unsigned int code)
{
	if (atkbd->set == 3) {
		if (atkbd->emul == 1)
			code |= 0x100;
        } else {
		code = (code & 0x7f) | ((code & 0x80) << 1);
		if (atkbd->emul == 1)
			code |= 0x80;
	}
	return code;
}