- ctx->profile = prof;
- ctx->dev_state = IDLE;
- ctx->timebase = DEFAULT_TIMEBASE;
- ctx->ch1_enabled = TRUE;
- ctx->ch2_enabled = TRUE;
- ctx->voltage_ch1 = DEFAULT_VOLTAGE;
- ctx->voltage_ch2 = DEFAULT_VOLTAGE;
- ctx->coupling_ch1 = DEFAULT_COUPLING;
- ctx->coupling_ch2 = DEFAULT_COUPLING;
- ctx->voffset_ch1 = DEFAULT_VERT_OFFSET;
- ctx->voffset_ch2 = DEFAULT_VERT_OFFSET;
- ctx->voffset_trigger = DEFAULT_VERT_TRIGGERPOS;
- ctx->framesize = DEFAULT_FRAMESIZE;
- ctx->triggerslope = SLOPE_POSITIVE;
- ctx->triggersource = g_strdup(DEFAULT_TRIGGER_SOURCE);
- ctx->triggerposition = DEFAULT_HORIZ_TRIGGERPOS;
- sdi->priv = ctx;
- hdi->instances = g_slist_append(hdi->instances, sdi);
+ devc->profile = prof;
+ devc->dev_state = IDLE;
+ devc->timebase = DEFAULT_TIMEBASE;
+ devc->ch1_enabled = TRUE;
+ devc->ch2_enabled = TRUE;
+ devc->voltage_ch1 = DEFAULT_VOLTAGE;
+ devc->voltage_ch2 = DEFAULT_VOLTAGE;
+ devc->coupling_ch1 = DEFAULT_COUPLING;
+ devc->coupling_ch2 = DEFAULT_COUPLING;
+ devc->voffset_ch1 = DEFAULT_VERT_OFFSET;
+ devc->voffset_ch2 = DEFAULT_VERT_OFFSET;
+ devc->voffset_trigger = DEFAULT_VERT_TRIGGERPOS;
+ devc->framesize = DEFAULT_FRAMESIZE;
+ devc->triggerslope = SLOPE_POSITIVE;
+ devc->triggersource = g_strdup(DEFAULT_TRIGGER_SOURCE);
+ devc->triggerposition = DEFAULT_HORIZ_TRIGGERPOS;
+ sdi->priv = devc;
+ drvc = hdi->priv;
+ drvc->instances = g_slist_append(drvc->instances, sdi);