[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4E134FBF.7050002@canonical.com>
Date: Tue, 05 Jul 2011 10:54:07 -0700
From: Chase Douglas <chase.douglas@...onical.com>
To: djkurtz@...omium.org
CC: dmitry.torokhov@...il.com, rydberg@...omail.se,
rubini@...l.unipv.it, linux-input@...r.kernel.org,
linux-kernel@...r.kernel.org, derek.foreman@...labora.co.uk,
daniel.stone@...labora.co.uk, olofj@...omium.org
Subject: Re: [PATCH 08/12] Input: synaptics - rename set_slot to be more descriptive
On 06/28/2011 10:07 PM, djkurtz@...omium.org wrote:
> From: Daniel Kurtz <djkurtz@...omium.org>
>
> Signed-off-by: Daniel Kurtz <djkurtz@...omium.org>
I like the new name much better :).
Acked-by: Chase Douglas <chase.douglas@...onical.com>
> ---
> drivers/input/mouse/synaptics.c | 17 ++++++++++-------
> 1 files changed, 10 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c
> index 4e5e454..0a51b0ba 100644
> --- a/drivers/input/mouse/synaptics.c
> +++ b/drivers/input/mouse/synaptics.c
> @@ -489,7 +489,8 @@ static int synaptics_parse_hw_state(const unsigned char buf[],
> return 0;
> }
>
> -static void set_slot(struct input_dev *dev, int slot, bool active, int x, int y)
> +static void synaptics_report_semi_mt_slot(struct input_dev *dev, int slot,
> + bool active, int x, int y)
> {
> input_mt_slot(dev, slot);
> input_mt_report_slot_state(dev, MT_TOOL_FINGER, active);
> @@ -505,14 +506,16 @@ static void synaptics_report_semi_mt_data(struct input_dev *dev,
> int num_fingers)
> {
> if (num_fingers >= 2) {
> - set_slot(dev, 0, true, min(a->x, b->x), min(a->y, b->y));
> - set_slot(dev, 1, true, max(a->x, b->x), max(a->y, b->y));
> + synaptics_report_semi_mt_slot(dev, 0, true, min(a->x, b->x),
> + min(a->y, b->y));
> + synaptics_report_semi_mt_slot(dev, 1, true, max(a->x, b->x),
> + max(a->y, b->y));
> } else if (num_fingers == 1) {
> - set_slot(dev, 0, true, a->x, a->y);
> - set_slot(dev, 1, false, 0, 0);
> + synaptics_report_semi_mt_slot(dev, 0, true, a->x, a->y);
> + synaptics_report_semi_mt_slot(dev, 1, false, 0, 0);
> } else {
> - set_slot(dev, 0, false, 0, 0);
> - set_slot(dev, 1, false, 0, 0);
> + synaptics_report_semi_mt_slot(dev, 0, false, 0, 0);
> + synaptics_report_semi_mt_slot(dev, 1, false, 0, 0);
> }
> }
>
--
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