aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/mouse/lifebook.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input/mouse/lifebook.c')
-rw-r--r--drivers/input/mouse/lifebook.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/input/mouse/lifebook.c b/drivers/input/mouse/lifebook.c
index 29542f0631cb..28d9770f5eb2 100644
--- a/drivers/input/mouse/lifebook.c
+++ b/drivers/input/mouse/lifebook.c
@@ -20,6 +20,14 @@
20#include "psmouse.h" 20#include "psmouse.h"
21#include "lifebook.h" 21#include "lifebook.h"
22 22
23static const char *desired_serio_phys;
24
25static int lifebook_set_serio_phys(struct dmi_system_id *d)
26{
27 desired_serio_phys = d->driver_data;
28 return 0;
29}
30
23static struct dmi_system_id lifebook_dmi_table[] = { 31static struct dmi_system_id lifebook_dmi_table[] = {
24 { 32 {
25 .ident = "FLORA-ie 55mi", 33 .ident = "FLORA-ie 55mi",
@@ -56,6 +64,8 @@ static struct dmi_system_id lifebook_dmi_table[] = {
56 .matches = { 64 .matches = {
57 DMI_MATCH(DMI_PRODUCT_NAME, "CF-18"), 65 DMI_MATCH(DMI_PRODUCT_NAME, "CF-18"),
58 }, 66 },
67 .callback = lifebook_set_serio_phys,
68 .driver_data = "isa0060/serio3",
59 }, 69 },
60 { 70 {
61 .ident = "Lifebook B142", 71 .ident = "Lifebook B142",
@@ -138,6 +148,10 @@ int lifebook_detect(struct psmouse *psmouse, int set_properties)
138 if (!dmi_check_system(lifebook_dmi_table)) 148 if (!dmi_check_system(lifebook_dmi_table))
139 return -1; 149 return -1;
140 150
151 if (desired_serio_phys &&
152 strcmp(psmouse->ps2dev.serio->phys, desired_serio_phys))
153 return -1;
154
141 if (set_properties) { 155 if (set_properties) {
142 psmouse->vendor = "Fujitsu"; 156 psmouse->vendor = "Fujitsu";
143 psmouse->name = "Lifebook TouchScreen"; 157 psmouse->name = "Lifebook TouchScreen";