1- From 74022a0f69ddb2e85913329a0aae63a6e30212b9 Mon Sep 17 00:00:00 2001
1+ From 2f55d3df2ef4908bc09ee3349793192acbb2042e Mon Sep 17 00:00:00 2001
22From: Maximilian Luz <
[email protected] >
33Date: Sat, 1 Jun 2019 21:17:15 +0200
44Subject: [PATCH 02/16] Add support for Intel Management Engine bus
@@ -16,10 +16,10 @@ the Microsoft Surface Books, Surface Pro 5 and 6, and Surface Laptops.
1616 6 files changed, 13 insertions(+)
1717
1818diff --git a/libwacom/libwacom-database.c b/libwacom/libwacom-database.c
19- index 7992930..9e93f4a 100644
19+ index a6cd54b4..2883bccb 100644
2020--- a/libwacom/libwacom-database.c
2121+++ b/libwacom/libwacom-database.c
22- @@ -132 ,6 +132 ,8 @@ bus_from_str (const char *str)
22+ @@ -176 ,6 +176 ,8 @@ bus_from_str (const char *str)
2323 return WBUSTYPE_I2C;
2424 if (g_str_equal(str, "virt"))
2525 return WBUSTYPE_VIRTUAL;
@@ -28,7 +28,7 @@ index 7992930..9e93f4a 100644
2828 return WBUSTYPE_UNKNOWN;
2929 }
3030
31- @@ -152 ,6 +154 ,8 @@ bus_to_str (WacomBusType bus)
31+ @@ -196 ,6 +198 ,8 @@ bus_to_str (WacomBusType bus)
3232 return "i2c";
3333 case WBUSTYPE_VIRTUAL:
3434 return "virt";
@@ -38,10 +38,10 @@ index 7992930..9e93f4a 100644
3838 g_assert_not_reached ();
3939 }
4040diff --git a/libwacom/libwacom.c b/libwacom/libwacom.c
41- index 5c89f65..f5f3dab 100644
41+ index fac97e65..17f8607d 100644
4242--- a/libwacom/libwacom.c
4343+++ b/libwacom/libwacom.c
44- @@ -153 ,6 +153 ,10 @@ get_bus_vid_pid (GUdevDevice *device,
44+ @@ -157 ,6 +157 ,10 @@ get_bus_vid_pid (GUdevDevice *device,
4545 *bus = WBUSTYPE_VIRTUAL;
4646 retval = TRUE;
4747 break;
@@ -52,7 +52,7 @@ index 5c89f65..f5f3dab 100644
5252 }
5353
5454 out:
55- @@ -1013 ,6 +1017 ,7 @@ static void print_match(int fd, const WacomMatch *match)
55+ @@ -1037 ,6 +1041 ,7 @@ static void print_match(int fd, const WacomMatch *match)
5656 case WBUSTYPE_SERIAL: bus_name = "serial"; break;
5757 case WBUSTYPE_I2C: bus_name = "i2c"; break;
5858 case WBUSTYPE_VIRTUAL: bus_name = "virt"; break;
@@ -61,7 +61,7 @@ index 5c89f65..f5f3dab 100644
6161 default: g_assert_not_reached(); break;
6262 }
6363diff --git a/libwacom/libwacom.h b/libwacom/libwacom.h
64- index a4fbb17..dfc6d7b 100644
64+ index 17dd7600..798a31dd 100644
6565--- a/libwacom/libwacom.h
6666+++ b/libwacom/libwacom.h
6767@@ -155,6 +155,7 @@ typedef enum {
@@ -73,7 +73,7 @@ index a4fbb17..dfc6d7b 100644
7373
7474 /**
7575diff --git a/test/test-tablet-validity.c b/test/test-tablet-validity.c
76- index 964fce0..5178583 100644
76+ index 77ff1327..ad350912 100644
7777--- a/test/test-tablet-validity.c
7878+++ b/test/test-tablet-validity.c
7979@@ -178,6 +178,7 @@ assert_vidpid(WacomBusType bus, int vid, int pid)
@@ -85,7 +85,7 @@ index 964fce0..5178583 100644
8585 g_assert_cmpint(pid, >, 0);
8686 break;
8787diff --git a/test/test_data_files.py b/test/test_data_files.py
88- index f76c3f3..f7cf9bc 100755
88+ index ee6ffcd3..bd7d798f 100755
8989--- a/test/test_data_files.py
9090+++ b/test/test_data_files.py
9191@@ -48,6 +48,7 @@ def test_device_match(tabletfile):
@@ -94,13 +94,13 @@ index f76c3f3..f7cf9bc 100755
9494 "virt",
9595+ "mei",
9696 ], f"{tabletfile}: unknown bus type"
97- assert re.match(
98- "[0-9a-f]{4}", vid
97+ assert re.match("[0-9a-f]{4}", vid), (
98+ f"{tabletfile}: { vid} must be lowercase hex"
9999diff --git a/tools/debug-device.c b/tools/debug-device.c
100- index 51ec53e..6a00f9d 100644
100+ index 286e9148..f5b17b56 100644
101101--- a/tools/debug-device.c
102102+++ b/tools/debug-device.c
103- @@ -123 ,6 +123 ,7 @@ handle_device(WacomDeviceDatabase *db, const char *path)
103+ @@ -178 ,6 +178 ,7 @@ handle_device(WacomDeviceDatabase *db, const char *path)
104104 case WBUSTYPE_BLUETOOTH: busstr = "BLUETOOTH"; break;
105105 case WBUSTYPE_I2C: busstr = "I2C"; break;
106106 case WBUSTYPE_VIRTUAL: busstr = "VIRTUAL"; break;
@@ -109,5 +109,5 @@ index 51ec53e..6a00f9d 100644
109109 func(libwacom_get_bustype, "%s", busstr);
110110 }
111111- -
112- 2.46 .0
112+ 2.49 .0
113113
0 commit comments