Eliminate VID_PID_TERM in favor of ALL_ZERO.

This commit is contained in:
Uwe Hermann 2019-06-15 15:45:12 +02:00
parent 66e19f47f4
commit 9451e01e77
5 changed files with 4 additions and 5 deletions

View 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;

View 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,

View 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,

View 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 {

View 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,