summaryrefslogtreecommitdiffstats
path: root/backend_mitsu9550.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2019-11-06 14:18:49 -0500
committerSolomon Peachy <pizza@shaftnet.org>2019-11-06 14:18:49 -0500
commite92762196d3a54c02e9f1b08345bc7518e76378d (patch)
tree2386e99c71f64b271b37341d671e8406d0a8e981 /backend_mitsu9550.c
parentd2d66174006f194cfeed8c31529d9ad493bb5d5d (diff)
downloadselphy_print-e92762196d3a54c02e9f1b08345bc7518e76378d.tar.gz
selphy_print-e92762196d3a54c02e9f1b08345bc7518e76378d.tar.bz2
selphy_print-e92762196d3a54c02e9f1b08345bc7518e76378d.zip
common: Pass bInterfaceNo into backend->query_serno() call
Also allow the USB iSerialNumber value to be ignored.
Diffstat (limited to 'backend_mitsu9550.c')
-rw-r--r--backend_mitsu9550.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend_mitsu9550.c b/backend_mitsu9550.c
index e178167..4586a69 100644
--- a/backend_mitsu9550.c
+++ b/backend_mitsu9550.c
@@ -1566,13 +1566,15 @@ static int mitsu9550_query_status2(struct mitsu9550_ctx *ctx)
return ret;
}
-static int mitsu9550_query_serno(struct libusb_device_handle *dev, uint8_t endp_up, uint8_t endp_down, char *buf, int buf_len)
+static int mitsu9550_query_serno(struct libusb_device_handle *dev, uint8_t endp_up, uint8_t endp_down, int iface, char *buf, int buf_len)
{
struct mitsu9550_cmd cmd;
uint8_t rdbuf[READBACK_LEN];
uint8_t *ptr;
int ret, num, i;
+ UNUSED(iface);
+
cmd.cmd[0] = 0x1b;
cmd.cmd[1] = 0x72;
cmd.cmd[2] = 0x6e;