Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190587
b: refs/heads/master
c: f81bc78
h: refs/heads/master
i:
  190585: 9d097e7
  190583: bebc5b4
v: v3
  • Loading branch information
Florian Ragwitz authored and Dmitry Torokhov committed May 4, 2010
1 parent a8e679f commit c4eb7c5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 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: 225c61aad38b12924b3df5f4ef43150c0d6bae8c
refs/heads/master: f81bc788ff91d4efd4baf88b2c29713838caa8e5
12 changes: 10 additions & 2 deletions trunk/drivers/input/mouse/elantech.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
printk(KERN_DEBUG format, ##arg); \
} while (0)

static bool force_elantech;
module_param_named(force_elantech, force_elantech, bool, 0644);
MODULE_PARM_DESC(force_elantech, "Force the Elantech PS/2 protocol extension to be used, 1 = enabled, 0 = disabled (default).");

/*
* Send a Synaptics style sliced query command
*/
Expand Down Expand Up @@ -595,8 +599,12 @@ int elantech_detect(struct psmouse *psmouse, bool set_properties)
param[0], param[1], param[2]);

if (param[0] == 0 || param[1] != 0) {
pr_debug("elantech.c: Probably not a real Elantech touchpad. Aborting.\n");
return -1;
if (!force_elantech) {
pr_debug("elantech.c: Probably not a real Elantech touchpad. Aborting.\n");
return -1;
}

pr_debug("elantech.c: Probably not a real Elantech touchpad. Enabling anyway due to force_elantech.\n");
}

if (set_properties) {
Expand Down

0 comments on commit c4eb7c5

Please sign in to comment.