Skip to content

Commit

Permalink
Input: psmouse - fix breakage introduced by b7802c5
Browse files Browse the repository at this point in the history
Commit b7802c5 ("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 and causes driver to issue extra reset when falling
back to bare PS/2 protocol.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Jiri Kosina authored and Dmitry Torokhov committed Nov 17, 2009
1 parent 3d4c3aa commit 0698989
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/mouse/psmouse-base.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0698989

Please sign in to comment.