From f8c617cf4c6b649d3456f1ca7082f6cfb6dac76d Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Fri, 13 Jul 2012 22:18:01 +0200 Subject: [PATCH] hantek-dso: instance list fix --- hardware/hantek-dso/dso.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hardware/hantek-dso/dso.c b/hardware/hantek-dso/dso.c index 77cad923..4eedf798 100644 --- a/hardware/hantek-dso/dso.c +++ b/hardware/hantek-dso/dso.c @@ -28,7 +28,8 @@ #include extern libusb_context *usb_context; -extern GSList *dev_insts; +extern struct sr_dev_driver hantek_dso_driver_info; +static struct sr_dev_driver *hdi = &hantek_dso_driver_info; static int send_begin(struct context *ctx) @@ -112,7 +113,7 @@ SR_PRIV int dso_open(int dev_index) struct context *ctx; int err, skip, i; - if (!(sdi = sr_dev_inst_get(dev_insts, dev_index))) + if (!(sdi = sr_dev_inst_get(hdi->instances, dev_index))) return SR_ERR_ARG; ctx = sdi->priv;