Re: [PATCH 2/2] eeepc-wmi: Add support for T101MT Home/Express Gatekey

From: Seth Forshee
Date: Thu Mar 24 2011 - 16:10:10 EST


On Thu, Mar 24, 2011 at 03:03:55PM -0500, Seth Forshee wrote:
> @@ -79,6 +94,52 @@ static const struct key_entry eeepc_wmi_keymap[] = {
> { KE_END, 0},
> };
>
> +static void eeepc_wmi_key_filter(struct asus_wmi_driver *asus_wmi, int *code,
> + int *value, int *autorelease)
> +{
> + struct eeepc_wmi_driver *eeepc = to_eeepc_wmi_driver(asus_wmi);
> + int is_press;
> +
> + /*
> + * The following behavior is used for T101MT "Home" key:
> + *
> + * On press: No event set
> + * On hold: KEY_PROG2 press sent once w/o autorelease
> + * On release: If key was held, KEY_PROG2 release sent.
> + * Otherwise KEY_HOME press sent w/ autorelease.

Doh, just noticed that this comment is incorrect. I'll fix it, but I'll
wait for comments before sending new patches.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/