Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298973
b: refs/heads/master
c: fb16395
h: refs/heads/master
i:
  298971: 58911ff
v: v3
  • Loading branch information
JJ Ding authored and Dmitry Torokhov committed Apr 10, 2012
1 parent c8efe1b commit cdf9470
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 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: e3dde4fba94e0ba5e1fd79ea9e5389eea1f0cfec
refs/heads/master: fb16395ee65d22882a0af30850cbf5c9b9a2962c
14 changes: 8 additions & 6 deletions trunk/drivers/input/mouse/trackpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ int trackpoint_detect(struct psmouse *psmouse, bool set_properties)
return 0;

if (trackpoint_read(&psmouse->ps2dev, TP_EXT_BTN, &button_info)) {
printk(KERN_WARNING "trackpoint.c: failed to get extended button data\n");
psmouse_warn(psmouse, "failed to get extended button data\n");
button_info = 0;
}

Expand All @@ -326,16 +326,18 @@ int trackpoint_detect(struct psmouse *psmouse, bool set_properties)

error = sysfs_create_group(&ps2dev->serio->dev.kobj, &trackpoint_attr_group);
if (error) {
printk(KERN_ERR
"trackpoint.c: failed to create sysfs attributes, error: %d\n",
error);
psmouse_err(psmouse,
"failed to create sysfs attributes, error: %d\n",
error);
kfree(psmouse->private);
psmouse->private = NULL;
return -1;
}

printk(KERN_INFO "IBM TrackPoint firmware: 0x%02x, buttons: %d/%d\n",
firmware_id, (button_info & 0xf0) >> 4, button_info & 0x0f);
psmouse_info(psmouse,
"IBM TrackPoint firmware: 0x%02x, buttons: %d/%d\n",
firmware_id,
(button_info & 0xf0) >> 4, button_info & 0x0f);

return 0;
}
Expand Down

0 comments on commit cdf9470

Please sign in to comment.