]> git.baikalelectronics.ru Git - kernel.git/commit
Input: psmouse - factor out common protocol probing code
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 28 Nov 2015 05:17:40 +0000 (21:17 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 17 Dec 2015 23:24:21 +0000 (15:24 -0800)
commit249c9b44131892f836612e96a1a710ed15125e87
tree61b774b7573e7e428ba0b43d20876a302549017f
parent43fb7fa5119767ae157f979c9c205b5fb8445423
Input: psmouse - factor out common protocol probing code

In preparation of limiting protocols that we try on pass-through ports,
let's rework initialization code and factor common code into
psmouse_try_protocol() that accepts protocol type (instead of detec()
function pointer) and can, for most protocols, perform both detection and
initialization.

Note that this removes option of forcing Lifebook protocol on devices that
are not recognized by lifebook_detect() as having the hardware, but I do
not recall anyone using this option.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Tested-by: Marcin Sochacki <msochacki+kernel@gmail.com>
Tested-by: Till <till2.schaefer@uni-dortmund.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/psmouse-base.c