]> sigrok.org Git - libsigrok.git/blobdiff - hardware/fx2lafw/fx2lafw.c
Add sr_dev_open()/sr_dev_close()
[libsigrok.git] / hardware / fx2lafw / fx2lafw.c
index eaa218b01c0b7dfc882994c56595c2ffc83f4a0a..f74c5a510b0f1fe4d6035ba37e3708c746820cd7 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * This file is part of the sigrok project.
+ * This file is part of the libsigrok project.
  *
  * Copyright (C) 2013 Bert Vermeulen <bert@biot.com>
  * Copyright (C) 2012 Joel Holdsworth <joel@airwebreathe.org.uk>
@@ -369,8 +369,6 @@ static GSList *hw_scan(GSList *options)
        int devcnt, num_logic_probes, ret, i, j;
        const char *conn;
 
-       (void)options;
-
        drvc = di->priv;
 
        /* This scan always invalidates any previous scans. */
@@ -592,7 +590,7 @@ static int config_get(int id, GVariant **data, const struct sr_dev_inst *sdi)
        switch (id) {
        case SR_CONF_CONN:
                if (!sdi || !sdi->conn)
-                       return SR_ERR;
+                       return SR_ERR_ARG;
                usb = sdi->conn;
                if (usb->address == 255)
                        /* Device still needs to re-enumerate after firmware