]> sigrok.org Git - libsigrok.git/commitdiff
Eliminate VID_PID_TERM in favor of ALL_ZERO.
authorUwe Hermann <redacted>
Sat, 15 Jun 2019 13:45:12 +0000 (15:45 +0200)
committerUwe Hermann <redacted>
Sat, 15 Jun 2019 13:45:12 +0000 (15:45 +0200)
src/libsigrok-internal.h
src/serial_hid_bu86x.c
src/serial_hid_ch9325.c
src/serial_hid_cp2110.c
src/serial_hid_victor.c

index 9df33ca329b95be703732a04b102e21af3e1c0d3..a1e2f2e4bf35eb1590e40450e588a91bc83dbe2b 100644 (file)
@@ -1232,7 +1232,6 @@ extern SR_PRIV struct ser_lib_functions *ser_lib_funcs_bt;
 struct vid_pid_item {
        uint16_t vid, pid;
 };
-#define VID_PID_TERM   ALL_ZERO
 
 struct ser_hid_chip_functions {
        const char *chipname;
index 3697e5b6cea1c5b9035804060b6f6f724f3e5297..32fa8f216b7742f6bbdf9052123ef5b556a68ce8 100644 (file)
@@ -57,7 +57,7 @@
 
 static const struct vid_pid_item vid_pid_items_bu86x[] = {
        { 0x0820, 0x0001, },
-       VID_PID_TERM,
+       ALL_ZERO
 };
 
 static int bu86x_set_params(struct sr_serial_dev_inst *serial,
index e4ce55a42c783faf6c2fe33a5730f1da35212b7d..ce4a4f67147a714b7e544c046b2473466462ec1c 100644 (file)
@@ -47,7 +47,7 @@ static const struct vid_pid_item vid_pid_items_ch9325[] = {
         * with the same support code.
         */
        { 0x04fa, 0x2490, },    /* HE2325U */
-       VID_PID_TERM,
+       ALL_ZERO
 };
 
 static int ch9325_set_params(struct sr_serial_dev_inst *serial,
index 2259bc5ab178f4ffe4109fab2b1f7962f7a06589..d588ca204d2b93a64249f47a07eaa7c0af3b3306 100644 (file)
@@ -42,7 +42,7 @@
 
 static const struct vid_pid_item vid_pid_items_cp2110[] = {
        { 0x10c4, 0xea80, },
-       VID_PID_TERM,
+       ALL_ZERO
 };
 
 enum cp2110_report_id {
index 59f11c168dfd02deca24b30ee42f2a2b9fa4a7d6..694cef27423b602301efddb0805d2a18fe19cf51 100644 (file)
@@ -57,7 +57,7 @@
 
 static const struct vid_pid_item vid_pid_items_victor[] = {
        { 0x1244, 0xd237, },
-       VID_PID_TERM,
+       ALL_ZERO
 };
 
 static int victor_set_params(struct sr_serial_dev_inst *serial,