From f03716cf91a1d292abd0a5aba7027f74af99ee80 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 18 Jul 2015 18:11:54 +0200 Subject: [PATCH] new-driver: Update for recent changes. --- source/drv-api.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/drv-api.c b/source/drv-api.c index e356ed1..20ac9c7 100644 --- a/source/drv-api.c +++ b/source/drv-api.c @@ -34,7 +34,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) (void)options; devices = NULL; - drvc = di->priv; + drvc = di->context; drvc->instances = NULL; /* TODO: scan for devices, either based on a SR_CONF_CONN option @@ -45,7 +45,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) static GSList *dev_list(const struct sr_dev_driver *di) { - return ((struct drv_context *)(di->priv))->instances; + return ((struct drv_context *)(di->context))->instances; } static int dev_clear(const struct sr_dev_driver *di) @@ -186,5 +186,5 @@ SR_PRIV struct sr_dev_driver ${lib}_driver_info = { .dev_close = dev_close, .dev_acquisition_start = dev_acquisition_start, .dev_acquisition_stop = dev_acquisition_stop, - .priv = NULL, + .context = NULL, }; -- 2.30.2