linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Tissoires <benjamin.tissoires@redhat.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: linux-input@vger.kernel.org, Hans de Goede <hdegoede@redhat.com>,
	Benson Leung <bleung@chromium.org>,
	Henrik Rydberg <rydberg@euromail.se>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Input: synaptics - properly initialize slots for semi-MT
Date: Sat, 26 Jul 2014 10:15:27 -0400	[thread overview]
Message-ID: <20140726141525.GD2279@mail.corp.redhat.com> (raw)
In-Reply-To: <20140726002751.GA16660@core.coreip.homeip.net>

On Jul 25 2014 or thereabouts, Dmitry Torokhov wrote:
> Semi-MT devices are pointers too, so let's tell that to
> input_mt_init_slots(), as well as let it set up the devices as semi-MT,
> instead of us doing it manually.
> 
> Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
> Reviewed-by: Benson Leung <bleung@chromium.org>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
> ---

Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>

>  drivers/input/mouse/synaptics.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/input/mouse/synaptics.c b/drivers/input/mouse/synaptics.c
> index ef9e0b8..fe607e9 100644
> --- a/drivers/input/mouse/synaptics.c
> +++ b/drivers/input/mouse/synaptics.c
> @@ -1371,11 +1371,11 @@ static void set_input_params(struct psmouse *psmouse,
>  		__set_bit(BTN_TOOL_QUADTAP, dev->keybit);
>  		__set_bit(BTN_TOOL_QUINTTAP, dev->keybit);
>  	} else if (SYN_CAP_ADV_GESTURE(priv->ext_cap_0c)) {
> -		/* Non-image sensors with AGM use semi-mt */
> -		__set_bit(INPUT_PROP_SEMI_MT, dev->propbit);
> -		input_mt_init_slots(dev, 2, 0);
>  		set_abs_position_params(dev, priv, ABS_MT_POSITION_X,
>  					ABS_MT_POSITION_Y);
> +		/* Non-image sensors with AGM use semi-mt */
> +		input_mt_init_slots(dev, 2,
> +				    INPUT_MT_POINTER | INPUT_MT_SEMI_MT);
>  	}
>  
>  	if (SYN_CAP_PALMDETECT(priv->capabilities))
> -- 
> 2.0.0.526.g5318336
> 
> 
> -- 
> Dmitry

  reply	other threads:[~2014-07-26 14:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-26  0:27 [PATCH] Input: synaptics - properly initialize slots for semi-MT Dmitry Torokhov
2014-07-26 14:15 ` Benjamin Tissoires [this message]
2014-07-26 15:50 ` Henrik Rydberg
2014-07-26 21:12   ` Dmitry Torokhov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140726141525.GD2279@mail.corp.redhat.com \
    --to=benjamin.tissoires@redhat.com \
    --cc=bleung@chromium.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=hdegoede@redhat.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rydberg@euromail.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).