diff options
author | Alexandr Shadchin <alexandr.shadchin@gmail.com> | 2011-02-28 16:38:28 +0500 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-03-01 12:02:05 +1000 |
commit | dce6006f6a851be4147e16731caa453dd0d1ec1c (patch) | |
tree | 9fdef7093907520c068eca15b8eb5d8bd00b32d2 /src/ps2comm.c | |
parent | ae19da1266642aa0ba5838e525b2878c1bef49c2 (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/ps2comm.c')
-rw-r--r-- | src/ps2comm.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/ps2comm.c b/src/ps2comm.c index a6e052c..0e9b861 100644 --- a/src/ps2comm.c +++ b/src/ps2comm.c @@ -660,17 +660,11 @@ PS2ReadHwState(InputInfoPtr pInfo, return PS2ReadHwStateProto(pInfo, &psaux_proto_operations, comm, hwRet); } -static Bool -PS2AutoDevProbe(InputInfoPtr pInfo) -{ - return FALSE; -} - struct SynapticsProtocolOperations psaux_proto_operations = { NULL, PS2DeviceOffHook, PS2QueryHardware, PS2ReadHwState, - PS2AutoDevProbe, + NULL, NULL }; |