X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Fserial_hid_bu86x.c;h=c103eefa27604b99b04c063d06fe9b3d0ca72088;hb=08f023fe97e402d68106299d04726f9094f00c45;hp=32fa8f216b7742f6bbdf9052123ef5b556a68ce8;hpb=9451e01e77563d97b500922c8bf7f8ae00887153;p=libsigrok.git diff --git a/src/serial_hid_bu86x.c b/src/serial_hid_bu86x.c index 32fa8f21..c103eefa 100644 --- a/src/serial_hid_bu86x.c +++ b/src/serial_hid_bu86x.c @@ -40,9 +40,7 @@ #include "serial_hid.h" #include -/** @cond PRIVATE */ #define LOG_PREFIX "serial-bu86x" -/** @endcond */ #ifdef HAVE_SERIAL_COMM #ifdef HAVE_LIBHIDAPI @@ -60,26 +58,6 @@ static const struct vid_pid_item vid_pid_items_bu86x[] = { ALL_ZERO }; -static int bu86x_set_params(struct sr_serial_dev_inst *serial, - int baudrate, int bits, int parity, int stopbits, - int flowcontrol, int rts, int dtr) -{ - /* - * The IR adapter's communication parameters are fixed and need - * not get configured. Just silently ignore the caller's spec. - */ - (void)serial; - (void)baudrate; - (void)bits; - (void)parity; - (void)stopbits; - (void)flowcontrol; - (void)rts; - (void)dtr; - - return SR_OK; -} - static int bu86x_read_bytes(struct sr_serial_dev_inst *serial, uint8_t *data, int space, unsigned int timeout) { @@ -108,7 +86,11 @@ static struct ser_hid_chip_functions chip_bu86x = { .chipdesc = "Brymen BU-86X", .vid_pid_items = vid_pid_items_bu86x, .max_bytes_per_request = BU86X_MAX_BYTES_PER_REQUEST, - .set_params = bu86x_set_params, + /* + * The IR adapter's communication parameters are fixed and need + * not get configured. Just silently ignore the caller's spec. + */ + .set_params = std_dummy_set_params, .read_bytes = bu86x_read_bytes, .write_bytes = bu86x_write_bytes, };