Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53410
b: refs/heads/master
c: 887cc12
h: refs/heads/master
v: v3
  • Loading branch information
Dmitry Torokhov committed Apr 12, 2007
1 parent 77cb6c3 commit e571e66
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 598972d4fb39c8a0826b396e45dc2a8c1dbe4f11
refs/heads/master: 887cc127233f34e833d074380f433a04de207563
10 changes: 10 additions & 0 deletions trunk/drivers/input/mouse/synaptics.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,16 @@ int synaptics_init(struct psmouse *psmouse)

set_input_params(psmouse->dev, priv);

/*
* Encode touchpad model so that it can be used to set
* input device->id.version and be visible to userspace.
* Because version is __u16 we have to drop something.
* Hardware info bits seem to be good candidates as they
* are documented to be for Synaptics corp. internal use.
*/
psmouse->model = ((priv->model_id & 0x00ff0000) >> 8) |
(priv->model_id & 0x000000ff);

psmouse->protocol_handler = synaptics_process_byte;
psmouse->set_rate = synaptics_set_rate;
psmouse->disconnect = synaptics_disconnect;
Expand Down

0 comments on commit e571e66

Please sign in to comment.