Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53416
b: refs/heads/master
c: 688897b
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov committed Apr 12, 2007
1 parent 855dcfc commit d578f3a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8d04ddb64c7bf62aec1102fddc5336a68bcaebe9
refs/heads/master: 688897b0d4910e097f34c0e263d649cf2036eb45
6 changes: 3 additions & 3 deletions trunk/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 d578f3a

Please sign in to comment.