X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fserial_hid_victor.c;h=a304980eb853d2a2d4035d0f5da945c8189be68c;hb=3a247d03595b910deba841ec8e7c312c156ae07c;hp=694cef27423b602301efddb0805d2a18fe19cf51;hpb=9451e01e77563d97b500922c8bf7f8ae00887153;p=libsigrok.git diff --git a/src/serial_hid_victor.c b/src/serial_hid_victor.c index 694cef27..a304980e 100644 --- a/src/serial_hid_victor.c +++ b/src/serial_hid_victor.c @@ -60,26 +60,6 @@ static const struct vid_pid_item vid_pid_items_victor[] = { ALL_ZERO }; -static int victor_set_params(struct sr_serial_dev_inst *serial, - int baudrate, int bits, int parity, int stopbits, - int flowcontrol, int rts, int dtr) -{ - /* - * The USB HID connection has no concept of UART bitrate or - * frame format. Silently ignore the parameters. - */ - (void)serial; - (void)baudrate; - (void)bits; - (void)parity; - (void)stopbits; - (void)flowcontrol; - (void)rts; - (void)dtr; - - return SR_OK; -} - /* Reverse bits within a byte. */ static uint8_t bit_reverse(uint8_t b) { @@ -193,7 +173,11 @@ static struct ser_hid_chip_functions chip_victor = { .chipdesc = "Victor DMM scrambler", .vid_pid_items = vid_pid_items_victor, .max_bytes_per_request = VICTOR_DMM_PACKET_LENGTH, - .set_params = victor_set_params, + /* + * The USB HID connection has no concept of UART bitrate or + * frame format. Silently ignore the parameters. + */ + .set_params = std_dummy_set_params, .read_bytes = victor_read_bytes, .write_bytes = victor_write_bytes, };