From: Uwe Hermann Date: Sat, 15 Jun 2019 13:45:12 +0000 (+0200) Subject: Eliminate VID_PID_TERM in favor of ALL_ZERO. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9451e01e77563d97b500922c8bf7f8ae00887153;p=libsigrok.git Eliminate VID_PID_TERM in favor of ALL_ZERO. --- diff --git a/src/libsigrok-internal.h b/src/libsigrok-internal.h index 9df33ca3..a1e2f2e4 100644 --- a/src/libsigrok-internal.h +++ b/src/libsigrok-internal.h @@ -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; diff --git a/src/serial_hid_bu86x.c b/src/serial_hid_bu86x.c index 3697e5b6..32fa8f21 100644 --- a/src/serial_hid_bu86x.c +++ b/src/serial_hid_bu86x.c @@ -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, diff --git a/src/serial_hid_ch9325.c b/src/serial_hid_ch9325.c index e4ce55a4..ce4a4f67 100644 --- a/src/serial_hid_ch9325.c +++ b/src/serial_hid_ch9325.c @@ -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, diff --git a/src/serial_hid_cp2110.c b/src/serial_hid_cp2110.c index 2259bc5a..d588ca20 100644 --- a/src/serial_hid_cp2110.c +++ b/src/serial_hid_cp2110.c @@ -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 { diff --git a/src/serial_hid_victor.c b/src/serial_hid_victor.c index 59f11c16..694cef27 100644 --- a/src/serial_hid_victor.c +++ b/src/serial_hid_victor.c @@ -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,