[PATCH synaptics 2/5] Use xf86SetStrOption instead of xf86FindOption for the Device
Peter Hutterer
peter.hutterer at who-t.net
Mon Jan 3 17:44:42 PST 2011
xf86SetStrOption reports to the log if found.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/synaptics.c | 4 ++--
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);
--
1.7.3.4
More information about the xorg-devel
mailing list