Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269477
b: refs/heads/master
c: 4af61e9
h: refs/heads/master
i:
  269475: 44d19f0
v: v3
  • Loading branch information
JJ Ding authored and Dmitry Torokhov committed Sep 21, 2011
1 parent 20b0aca commit 5a754fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 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: 84a90b610a1473d732818ec5d041ab18eae77f14
refs/heads/master: 4af61e90270e35bafa9e99a3c48fb3f363da592d
12 changes: 2 additions & 10 deletions trunk/drivers/input/mouse/elantech.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@
printk(KERN_DEBUG pr_fmt(fmt), ##__VA_ARGS__); \
} 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 @@ -1164,12 +1160,8 @@ int elantech_detect(struct psmouse *psmouse, bool set_properties)
param[0], param[1], param[2]);

if (!elantech_is_signature_valid(param)) {
if (!force_elantech) {
pr_debug("Probably not a real Elantech touchpad. Aborting.\n");
return -1;
}

pr_debug("Probably not a real Elantech touchpad. Enabling anyway due to force_elantech.\n");
pr_debug("Probably not a real Elantech touchpad. Aborting.\n");
return -1;
}

if (set_properties) {
Expand Down

0 comments on commit 5a754fa

Please sign in to comment.