diff options
author | Dmitry Torokhov <dtor_core@ameritech.net> | 2005-05-29 03:30:32 -0400 |
---|---|---|
committer | Dmitry Torokhov <dtor_core@ameritech.net> | 2005-05-29 03:30:32 -0400 |
commit | a15d60f867408a4d8ce46359d9eb677818349e5b (patch) | |
tree | 7aff91d8e018253327a893732c5f5ee87b55d095 /drivers/input/mouse/psmouse-base.c | |
parent | 14e94143964d5af6d0a2ae8401cd9e9e091967b9 (diff) |
Input: lifebook - adjust initialization routines to be in line with
the rest of protocols in preparation to dynamic protocol
switching.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/mouse/psmouse-base.c')
-rw-r--r-- | drivers/input/mouse/psmouse-base.c | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/drivers/input/mouse/psmouse-base.c b/drivers/input/mouse/psmouse-base.c index 4be21847c67d..0ecf1297b6a8 100644 --- a/drivers/input/mouse/psmouse-base.c +++ b/drivers/input/mouse/psmouse-base.c | |||
@@ -424,8 +424,18 @@ static int psmouse_extensions(struct psmouse *psmouse, | |||
424 | { | 424 | { |
425 | int synaptics_hardware = 0; | 425 | int synaptics_hardware = 0; |
426 | 426 | ||
427 | if (lifebook_detect(psmouse, max_proto, set_properties) == 0) | 427 | /* |
428 | return PSMOUSE_LIFEBOOK; | 428 | * We always check for lifebook because it does not disturb mouse |
429 | * (it only checks DMI information). | ||
430 | */ | ||
431 | if (lifebook_detect(psmouse, set_properties) == 0 || | ||
432 | max_proto == PSMOUSE_LIFEBOOK) { | ||
433 | |||
434 | if (max_proto > PSMOUSE_IMEX) { | ||
435 | if (!set_properties || lifebook_init(psmouse) == 0) | ||
436 | return PSMOUSE_LIFEBOOK; | ||
437 | } | ||
438 | } | ||
429 | 439 | ||
430 | /* | 440 | /* |
431 | * Try Kensington ThinkingMouse (we try first, because synaptics probe | 441 | * Try Kensington ThinkingMouse (we try first, because synaptics probe |