summaryrefslogtreecommitdiff
path: root/synaptics.c
diff options
context:
space:
mode:
authorPeter Osterlund <petero2@telia.com>2004-04-18 20:27:31 +0200
committerPeter Osterlund <petero2@telia.com>2006-04-09 04:02:12 +0200
commit264bbfd70a6102dd2a9b8b347e6a31a633984bc0 (patch)
tree861d6e03f87b27a3967f607b45cbb6c3c590e019 /synaptics.c
parent8148d66fb55dc3307fb653242c5120c7192e9773 (diff)
Added (untested) support for the FreeBSD psm mouse driver.
Diffstat (limited to 'synaptics.c')
-rw-r--r--synaptics.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/synaptics.c b/synaptics.c
index a532e4b..348181c 100644
--- a/synaptics.c
+++ b/synaptics.c
@@ -171,10 +171,12 @@ SetDeviceAndProtocol(LocalDevicePtr local)
enum SynapticsProtocol proto = SYN_PROTO_PSAUX;
str_par = xf86FindOptionValue(local->options, "Protocol");
- if (str_par && !strcmp(str_par, "event")) {
- proto = SYN_PROTO_EVENT;
- } else if (str_par && !strcmp(str_par, "psaux")) {
+ if (str_par && !strcmp(str_par, "psaux")) {
/* Already set up */
+ } else if (str_par && !strcmp(str_par, "event")) {
+ proto = SYN_PROTO_EVENT;
+ } else if (str_par && !strcmp(str_par, "psm")) {
+ proto = SYN_PROTO_PSM;
} else { /* default to auto-dev */
if (event_proto_operations.autoDevProbe(local))
proto = SYN_PROTO_EVENT;
@@ -186,7 +188,8 @@ SetDeviceAndProtocol(LocalDevicePtr local)
case SYN_PROTO_EVENT:
priv->proto_ops = &event_proto_operations;
break;
- default:
+ case SYN_PROTO_PSM:
+ priv->proto_ops = &psm_proto_operations;
break;
}
}