]> sigrok.org Git - libsigrok.git/blobdiff - hardware/nexus-osciprime/api.c
Drop some lines that are no longer needed.
[libsigrok.git] / hardware / nexus-osciprime / api.c
index b81b9e88c5f440d79246c35fc1ba6473069c8e69..35bf27423af92cc047ffede3ff6691cc20c56021 100644 (file)
@@ -42,7 +42,7 @@ static const int32_t hwcaps[] = {
        SR_CONF_VDIV,
 };
 
-static const struct sr_rational timebases[] = {
+static const uint64_t timebases[][2] = {
        /* 24 MHz */
        { 42, 1e9 },
        /* 12 MHz */
@@ -94,7 +94,7 @@ static const char *probe_names[] = {
        NULL,
 };
 
-static const struct sr_rational vdivs[] = {
+static const uint64_t vdivs[][2] = {
        { 1, 1 },
        { 2, 1 },
        { 5, 2 },
@@ -137,7 +137,7 @@ static int clear_instances(void)
 
 static int hw_init(struct sr_context *sr_ctx)
 {
-       return std_hw_init(sr_ctx, di, DRIVER_LOG_DOMAIN);
+       return std_hw_init(sr_ctx, di, LOG_PREFIX);
 }
 
 static GSList *hw_scan(GSList *options)
@@ -153,13 +153,8 @@ static GSList *hw_scan(GSList *options)
        int i;
        const char *conn;
 
-       (void)options;
-
        drvc = di->priv;
 
-       /* USB scan is always authoritative. */
-       clear_instances();
-
        conn = NULL;
        for (l = options; l; l = l->next) {
                src = l->data;