From: Bert Vermeulen Date: Sun, 15 Jul 2012 02:06:57 +0000 (+0200) Subject: asix-sigma: scan/info_get fixes X-Git-Tag: dsupstream~802 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d7bbecfdb9bcec55a0eb067853df85d8fd326f84;p=libsigrok.git asix-sigma: scan/info_get fixes --- diff --git a/hardware/asix-sigma/asix-sigma.c b/hardware/asix-sigma/asix-sigma.c index 5eeb6c1c..e0a435a0 100644 --- a/hardware/asix-sigma/asix-sigma.c +++ b/hardware/asix-sigma/asix-sigma.c @@ -497,6 +497,7 @@ static GSList *hw_scan(GSList *options) sr_err("sigma: %s: sdi was NULL", __func__); goto free; } + sdi->driver = adi; devices = g_slist_append(devices, sdi); adi->instances = g_slist_append(adi->instances, sdi); sdi->priv = ctx; @@ -807,6 +808,8 @@ static int hw_info_get(int info_id, const void **data, } else return SR_ERR; break; + default: + return SR_ERR_ARG; } return SR_OK;