Skip to content

Commit

Permalink
Input: logips2pp - ignore mice reporting model as 0
Browse files Browse the repository at this point in the history
There are mice reporting to logitech's queries with model
of 0. Do not claim that these are Logitech mice.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
  • Loading branch information
Dmitry Torokhov committed Apr 12, 2007
1 parent 8d04ddb commit 688897b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/input/mouse/logips2pp.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,12 +338,12 @@ int ps2pp_init(struct psmouse *psmouse, int set_properties)
param[1] = 0;
ps2_command(ps2dev, param, PSMOUSE_CMD_GETINFO);

if (!param[1])
return -1;

model = ((param[0] >> 4) & 0x07) | ((param[0] << 3) & 0x78);
buttons = param[1];

if (!model || !buttons)
return -1;

if ((model_info = get_model_info(model)) != NULL) {

/*
Expand Down

0 comments on commit 688897b

Please sign in to comment.