Eliminate VID_PID_TERM in favor of ALL_ZERO.
This commit is contained in:
parent
66e19f47f4
commit
9451e01e77
|
@ -1232,7 +1232,6 @@ extern SR_PRIV struct ser_lib_functions *ser_lib_funcs_bt;
|
||||||
struct vid_pid_item {
|
struct vid_pid_item {
|
||||||
uint16_t vid, pid;
|
uint16_t vid, pid;
|
||||||
};
|
};
|
||||||
#define VID_PID_TERM ALL_ZERO
|
|
||||||
|
|
||||||
struct ser_hid_chip_functions {
|
struct ser_hid_chip_functions {
|
||||||
const char *chipname;
|
const char *chipname;
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
|
|
||||||
static const struct vid_pid_item vid_pid_items_bu86x[] = {
|
static const struct vid_pid_item vid_pid_items_bu86x[] = {
|
||||||
{ 0x0820, 0x0001, },
|
{ 0x0820, 0x0001, },
|
||||||
VID_PID_TERM,
|
ALL_ZERO
|
||||||
};
|
};
|
||||||
|
|
||||||
static int bu86x_set_params(struct sr_serial_dev_inst *serial,
|
static int bu86x_set_params(struct sr_serial_dev_inst *serial,
|
||||||
|
|
|
@ -47,7 +47,7 @@ static const struct vid_pid_item vid_pid_items_ch9325[] = {
|
||||||
* with the same support code.
|
* with the same support code.
|
||||||
*/
|
*/
|
||||||
{ 0x04fa, 0x2490, }, /* HE2325U */
|
{ 0x04fa, 0x2490, }, /* HE2325U */
|
||||||
VID_PID_TERM,
|
ALL_ZERO
|
||||||
};
|
};
|
||||||
|
|
||||||
static int ch9325_set_params(struct sr_serial_dev_inst *serial,
|
static int ch9325_set_params(struct sr_serial_dev_inst *serial,
|
||||||
|
|
|
@ -42,7 +42,7 @@
|
||||||
|
|
||||||
static const struct vid_pid_item vid_pid_items_cp2110[] = {
|
static const struct vid_pid_item vid_pid_items_cp2110[] = {
|
||||||
{ 0x10c4, 0xea80, },
|
{ 0x10c4, 0xea80, },
|
||||||
VID_PID_TERM,
|
ALL_ZERO
|
||||||
};
|
};
|
||||||
|
|
||||||
enum cp2110_report_id {
|
enum cp2110_report_id {
|
||||||
|
|
|
@ -57,7 +57,7 @@
|
||||||
|
|
||||||
static const struct vid_pid_item vid_pid_items_victor[] = {
|
static const struct vid_pid_item vid_pid_items_victor[] = {
|
||||||
{ 0x1244, 0xd237, },
|
{ 0x1244, 0xd237, },
|
||||||
VID_PID_TERM,
|
ALL_ZERO
|
||||||
};
|
};
|
||||||
|
|
||||||
static int victor_set_params(struct sr_serial_dev_inst *serial,
|
static int victor_set_params(struct sr_serial_dev_inst *serial,
|
||||||
|
|
Loading…
Reference in New Issue