With drivers that support multiple devices we need to know the device model
while listing options. That information is most of the time saved in the private
part of the dev_inst structure.

Pass the pointer to the dev_inst structure as an function argument so we have
access to this information.
---
 device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/device.c b/device.c
index 1fe2e5f..ce2ca65 100644
--- a/device.c
+++ b/device.c
@@ -210,7 +210,7 @@ SR_API gboolean sr_dev_has_option(const struct sr_dev_inst 
*sdi, int key)
                return FALSE;
 
        if (sdi->driver->config_list(SR_CONF_DEVICE_OPTIONS,
-                               &gvar, NULL, NULL) != SR_OK)
+                               &gvar, sdi, NULL) != SR_OK)
                return FALSE;
 
        ret = FALSE;
-- 
1.8.5.3


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
sigrok-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sigrok-devel

Reply via email to