aboutsummaryrefslogtreecommitdiff
path: root/x11-drivers/xf86-input-hyperpen/files/patch-git_03_02a74cf
blob: c66f8870b7a6e299d1f6853cc9ba6a3f211d478e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 02a74cfd0ba5ac0190307a63189ac643644b7574 Mon Sep 17 00:00:00 2001
From: Peter Hutterer <peter.hutterer@who-t.net>
Date: Tue, 19 Jul 2011 12:41:24 +1000
Subject: Use xf86SetStrOption for Option Device

Let the device be printed in the logs

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>

diff --git a/src/xf86HyperPen.c b/src/xf86HyperPen.c
index 52a6e4f..320add5 100644
--- src/xf86HyperPen.c
+++ src/xf86HyperPen.c
@@ -827,7 +827,7 @@ xf86HypInit(InputDriverPtr      drv,
     }
 
     /* Serial Device is mandatory */
-    priv->hypDevice = xf86FindOptionValue(pInfo->options, "Device");
+    priv->hypDevice = xf86SetStrOption(pInfo->options, "Device", NULL);
 
     if (!priv->hypDevice) {
         xf86Msg (X_ERROR, "%s: No Device specified.\n", pInfo->name);
-- 
cgit v0.10.2