From: Bert Vermeulen Date: Sun, 7 Apr 2013 20:51:45 +0000 (+0200) Subject: use driver callbacks directly X-Git-Tag: dsupstream~178 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=d8284802ca6bbdf19e7ff0ae9bcc5b6e111056c0;p=libsigrok.git use driver callbacks directly --- diff --git a/hwdriver.c b/hwdriver.c index d48131d2..0d264815 100644 --- a/hwdriver.c +++ b/hwdriver.c @@ -479,7 +479,7 @@ SR_API int sr_config_list(const struct sr_dev_driver *driver, int key, if (!driver || !data) ret = SR_ERR; - else if (!sdi->driver->config_list) + else if (!driver->config_list) ret = SR_ERR_ARG; else if ((ret = driver->config_list(key, data, sdi)) == SR_OK) g_variant_ref_sink(*data);