Re: [PATCH 2/3] psmouse: Skip psmouse_initialize for FocalTech touchpads.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Mathias,

On Sat, Feb 14, 2015 at 08:01:41PM +0100, Mathias Gottschlag wrote:
>  /*
> @@ -1157,7 +1159,7 @@ static void psmouse_initialize(struct psmouse *psmouse)
>   * We set the mouse report rate, resolution and scaling.
>   */
>  
> -	if (psmouse_max_proto != PSMOUSE_PS2) {
> +	if (psmouse_max_proto != PSMOUSE_PS2 && !psmouse->skip_standard_init) {
>  		psmouse->set_rate(psmouse, psmouse->rate);
>  		psmouse->set_resolution(psmouse, psmouse->resolution);
>  		ps2_command(&psmouse->ps2dev, NULL, PSMOUSE_CMD_SETSCALE11);

Instead of introducing the new skip_standard_init flag can you instead define a
pointer for set_scale implementation and provide a dummy stub for it in
focatech, the same as you do for set_rate() and set_resoluton() in patch 3?

Thanks.

-- 
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux