summaryrefslogtreecommitdiff
path: root/src/alpscomm.c
diff options
context:
space:
mode:
authorAlexandr Shadchin <alexandr.shadchin@gmail.com>2011-02-28 16:38:28 +0500
committerPeter Hutterer <peter.hutterer@who-t.net>2011-03-01 12:02:05 +1000
commitdce6006f6a851be4147e16731caa453dd0d1ec1c (patch)
tree9fdef7093907520c068eca15b8eb5d8bd00b32d2 /src/alpscomm.c
parentae19da1266642aa0ba5838e525b2878c1bef49c2 (diff)
Rewrite mechanisn to detect Protocol and Device
Made SetDeviceAndProtocol() does not depend on the protocols, it will make it easier to add new backend. New behavior SetDeviceAndProtocol: 1) If not set Device or Protocol, then try AutoDevProbe 2) Otherwise, look for the appropriate protocol (Device and Protocol must be set) Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/alpscomm.c')
-rw-r--r--src/alpscomm.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/alpscomm.c b/src/alpscomm.c
index 3872f5c..dc76655 100644
--- a/src/alpscomm.c
+++ b/src/alpscomm.c
@@ -220,17 +220,11 @@ ALPSReadHwState(InputInfoPtr pInfo,
return TRUE;
}
-static Bool
-ALPSAutoDevProbe(InputInfoPtr pInfo)
-{
- return FALSE;
-}
-
struct SynapticsProtocolOperations alps_proto_operations = {
NULL,
NULL,
ALPSQueryHardware,
ALPSReadHwState,
- ALPSAutoDevProbe,
+ NULL,
NULL
};