No functional changes

Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net>
---
 tools/generate-udev-rules.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/tools/generate-udev-rules.c b/tools/generate-udev-rules.c
index 4d096cf..c6d430b 100644
--- a/tools/generate-udev-rules.c
+++ b/tools/generate-udev-rules.c
@@ -70,17 +70,19 @@ static void print_udev_entry_for_match (WacomDevice 
*device, const WacomMatch *m
 
        switch (type) {
                case WBUSTYPE_USB:
-                       printf ("ENV{ID_BUS}==\"usb\", 
ENV{ID_VENDOR_ID}==\"%04x\", ENV{ID_MODEL_ID}==\"%04x\", ENV{ID_INPUT}=\"1\", 
ENV{ID_INPUT_TABLET}=\"1\"%s\n", vendor, product, touchpad);
+                       printf ("ENV{ID_BUS}==\"usb\", 
ENV{ID_VENDOR_ID}==\"%04x\", ENV{ID_MODEL_ID}==\"%04x\", ", vendor, product);
                        break;
                case WBUSTYPE_BLUETOOTH:
                        /* Bluetooth tablets do not have 
ID_VENDOR_ID/ID_MODEL_ID etc set correctly. They
                         * do have the PRODUCT set though. */
-                       printf ("ENV{PRODUCT}==\"5/%x/%x/*\", 
ENV{ID_INPUT}=\"1\", ENV{ID_INPUT_TABLET}=\"1\"%s\n", vendor, product, 
touchpad);
+                       printf ("ENV{PRODUCT}==\"5/%x/%x/*\", ", vendor, 
product);
                        break;
                default:
                        /* Not sure how to deal with serials  */
-                       break;
+                       return;
        }
+
+       printf("ENV{ID_INPUT}=\"1\", ENV{ID_INPUT_TABLET}=\"1\"%s\n", touchpad);
 }
 
 static void print_uinput_entry_for_match (WacomDevice *device, const 
WacomMatch *match,
-- 
2.1.0


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to