From: Bert Vermeulen Date: Sun, 15 Jul 2012 02:32:21 +0000 (+0200) Subject: fx2lafw: don't use deprecated hwcap_get_all() driver API call X-Git-Tag: dsupstream~794 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=cbd798f4002c1abccaa20ebe874c0aa45060bb0e;p=libsigrok.git fx2lafw: don't use deprecated hwcap_get_all() driver API call --- diff --git a/hardware/fx2lafw/fx2lafw.c b/hardware/fx2lafw/fx2lafw.c index cc31041e..d7fdf2f5 100644 --- a/hardware/fx2lafw/fx2lafw.c +++ b/hardware/fx2lafw/fx2lafw.c @@ -611,18 +611,15 @@ static int hw_cleanup(void) return ret; } -static int hw_info_get(int dev_info_id, const void **data, +static int hw_info_get(int info_id, const void **data, const struct sr_dev_inst *sdi) { struct context *ctx; - switch (dev_info_id) { + switch (info_id) { case SR_DI_INST: *data = sdi; break; - case SR_DI_HWOPTS: - *data = NULL; - break; case SR_DI_HWCAPS: *data = hwcaps; break;