lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Sat, 26 Jul 2014 10:15:27 -0400
From:	Benjamin Tissoires <benjamin.tissoires@...hat.com>
To:	Dmitry Torokhov <dmitry.torokhov@...il.com>
Cc:	linux-input@...r.kernel.org, Hans de Goede <hdegoede@...hat.com>,
	Benson Leung <bleung@...omium.org>,
	Henrik Rydberg <rydberg@...omail.se>,
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Input: synaptics - properly initialize slots for semi-MT

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@...omium.org>
> Reviewed-by: Benson Leung <bleung@...omium.org>
> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@...il.com>
> ---

Reviewed-by: Benjamin Tissoires <benjamin.tissoires@...hat.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
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ