From 70703aa390f7d4b22fbc7eadb5ea66c030df35ad Mon Sep 17 00:00:00 2001 From: Dan Nechita Date: Fri, 22 May 2020 13:39:36 +0300 Subject: [PATCH] usb: Fix compile error caused by unkown indentifier (interface) Signed-off-by: Dan Nechita --- usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usb.c b/usb.c index 13e677b84..d5b354b03 100644 --- a/usb.c +++ b/usb.c @@ -762,7 +762,7 @@ static int usb_populate_context_attrs(struct iio_context *ctx, iio_snprintf(uri, sizeof(uri), "usb:%d.%d.%u", libusb_get_bus_number(dev), libusb_get_device_address(dev), - (uint8_t)ctx->pdata->interface); + (uint8_t)ctx->pdata->intrfc); ret = iio_context_add_attr(ctx, "uri", uri); if (ret < 0) return ret;