summaryrefslogtreecommitdiffstats
path: root/backend_kodak6800.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_kodak6800.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_kodak6800.c')
-rw-r--r--backend_kodak6800.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend_kodak6800.c b/backend_kodak6800.c
index b262e9f..740e4bc 100644
--- a/backend_kodak6800.c
+++ b/backend_kodak6800.c
@@ -540,7 +540,7 @@ done:
return ret;
}
-static int kodak6800_query_serno(struct libusb_device_handle *dev, uint8_t endp_up, uint8_t endp_down, char *buf, int buf_len)
+static int kodak6800_query_serno(struct libusb_device_handle *dev, uint8_t endp_up, uint8_t endp_down, int iface, char *buf, int buf_len)
{
struct kodak6800_ctx ctx = {
.dev = dev,
@@ -554,6 +554,8 @@ static int kodak6800_query_serno(struct libusb_device_handle *dev, uint8_t endp_
uint8_t resp[33];
uint8_t req[16];
+ UNUSED(iface);
+
memset(req, 0, sizeof(req));
memset(resp, 0, sizeof(resp));