X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=hardware%2Ftondaj-sl-814%2Fapi.c;h=17fbc2b1b4d91bfac21e93b866f3be132ecf8716;hb=acac8fc3500bc1f1e9e43c1508638488d91b2f86;hp=beb8c3378724859c1e67a07530c7877f15dd0afd;hpb=a54dd31e380ca4b469a20e41a0023d1dd9ec3c99;p=libsigrok.git diff --git a/hardware/tondaj-sl-814/api.c b/hardware/tondaj-sl-814/api.c index beb8c337..17fbc2b1 100644 --- a/hardware/tondaj-sl-814/api.c +++ b/hardware/tondaj-sl-814/api.c @@ -73,7 +73,7 @@ static int clear_instances(void) return SR_OK; } -static int hw_init(void) +static int hw_init(struct sr_context *sr_ctx) { struct drv_context *drvc; @@ -82,6 +82,7 @@ static int hw_init(void) return SR_ERR_MALLOC; } + drvc->sr_ctx = sr_ctx; di->priv = drvc; return SR_OK;