]> sigrok.org Git - libsigrok.git/commitdiff
asix-sigma: scan/info_get fixes
authorBert Vermeulen <redacted>
Sun, 15 Jul 2012 02:06:57 +0000 (04:06 +0200)
committerBert Vermeulen <redacted>
Fri, 3 Aug 2012 08:27:39 +0000 (10:27 +0200)
hardware/asix-sigma/asix-sigma.c

index 5eeb6c1cf1aae5cbe56f425db1412cb6e3af8c15..e0a435a05e9a3b46647e6d59124f1b73b4f075ee 100644 (file)
@@ -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;