[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGS+omDVn1uoU85pPN+jeHMTMp83EA13b3E8Sca0QOqDBZHQFg@mail.gmail.com>
Date: Thu, 18 Aug 2011 11:04:35 +0800
From: Daniel Kurtz <djkurtz@...omium.org>
To: JJ Ding <jj_ding@....com.tw>
Cc: linux-input@...r.kernel.org, linux-kernel@...r.kernel.org,
Seth Forshee <seth.forshee@...onical.com>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Aaron Huang <aaron_huang@....com.tw>,
Tom Lin <tom_lin@....com.tw>,
Eric Piel <E.A.B.Piel@...elft.nl>,
Chase Douglas <chase.douglas@...onical.com>,
Henrik Rydberg <rydberg@...omail.se>,
Alessandro Rubini <rubini@...l.unipv.it>
Subject: Re: [PATCH 5/6] Input: elantech - clean up elantech_init
On Thu, Aug 18, 2011 at 9:57 AM, JJ Ding <jj_ding@....com.tw> wrote:
> Group property setting code into elantech_set_properties.
>
> Signed-off-by: JJ Ding <jj_ding@....com.tw>
> ---
> drivers/input/mouse/elantech.c | 69 ++++++++++++++++++++++-----------------
> 1 files changed, 39 insertions(+), 30 deletions(-)
>
> diff --git a/drivers/input/mouse/elantech.c b/drivers/input/mouse/elantech.c
> index 7b9b6e5..ddd40eb 100644
> --- a/drivers/input/mouse/elantech.c
> +++ b/drivers/input/mouse/elantech.c
> @@ -791,6 +791,42 @@ static int elantech_reconnect(struct psmouse *psmouse)
> }
>
> /*
> + * determine hardware version and set some properties according to it.
> + */
> +static void elantech_set_properties(struct elantech_data *etd)
> +{
> + /*
> + * Assume every version greater than 0x020030 is new EeePC style
> + * hardware with 6 byte packets, except 0x020600
> + */
> + if (etd->fw_version < 0x020030 || etd->fw_version == 0x020600)
> + etd->hw_version = 1;
> + else
> + etd->hw_version = 2;
> +
> + /*
> + * Turn on packet checking by default.
> + */
> + etd->paritycheck = 1;
Assuming paritycheck goes away:
Reviewed-by: Daniel Kurtz <djkurtz@...omium.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists