Messages in this thread Patch in this message | | | Date | Mon, 16 Nov 2009 12:51:30 +0100 (CET) | From | Jiri Kosina <> | Subject | [PATCH] Input: fix wrong synaptics detection in psmouse_extensions() |
| |
Commit b7802c5c1ea ("Input: psmouse - use boolean type") caused the synaptics_hardware variable to be completely useless, as it is constantly set to 'true' throughout the whole psmouse_extensions(). This was caused by the following hunk in the commit in question
- int synaptics_hardware = 0; + bool synaptics_hardware = true;
which is wrong. Fix that up.
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
--- drivers/input/mouse/psmouse-base.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/input/mouse/psmouse-base.c b/drivers/input/mouse/psmouse-base.c index 690aed9..b7eccc2 100644 --- a/drivers/input/mouse/psmouse-base.c +++ b/drivers/input/mouse/psmouse-base.c @@ -581,7 +581,7 @@ static int cortron_detect(struct psmouse *psmouse, bool set_properties) static int psmouse_extensions(struct psmouse *psmouse, unsigned int max_proto, bool set_properties) { - bool synaptics_hardware = true; + bool synaptics_hardware = false; /* * We always check for lifebook because it does not disturb mouse
| |