summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2010-12-08 11:05:51 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-01-05 07:33:32 +1000
commit2da93d9735b6951861043de8ea59c8ca1cea4f96 (patch)
treed9a8d146a7852ebe33853a6fd6ab4692dcadcf96
parentb2cc4f5c4aa35fb13d96fafdbd907b6dba4b4796 (diff)
Use xf86SetStrOption instead of xf86FindOption for the Device
xf86SetStrOption reports to the log if found. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
-rw-r--r--src/synaptics.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/synaptics.c b/src/synaptics.c
index 872930c..151d2a4 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -238,9 +238,9 @@ SetDeviceAndProtocol(InputInfoPtr pInfo)
SynapticsPrivate *priv = pInfo->private;
enum SynapticsProtocol proto = SYN_PROTO_PSAUX;
- device = xf86FindOptionValue(pInfo->options, "Device");
+ device = xf86SetStrOption(pInfo->options, "Device", NULL);
if (!device) {
- device = xf86FindOptionValue(pInfo->options, "Path");
+ device = xf86SetStrOption(pInfo->options, "Path", NULL);
if (device) {
pInfo->options =
xf86ReplaceStrOption(pInfo->options, "Device", device);