]> sigrok.org Git - libsigrok.git/blobdiff - src/serial_hid_victor.c
uni-t-ut181a: silence compiler warning, use of uninitialized variable
[libsigrok.git] / src / serial_hid_victor.c
index 59f11c168dfd02deca24b30ee42f2a2b9fa4a7d6..684a851d46c26d458b9759f47316e7e412c1714b 100644 (file)
@@ -40,9 +40,7 @@
 #include "serial_hid.h"
 #include <string.h>
 
-/** @cond PRIVATE */
 #define LOG_PREFIX "serial-victor"
-/** @endcond */
 
 #ifdef HAVE_SERIAL_COMM
 #ifdef HAVE_LIBHIDAPI
 
 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,
-       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 +171,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,
 };