]> sigrok.org Git - libsigrok.git/commitdiff
fx2lafw: don't use deprecated hwcap_get_all() driver API call
authorBert Vermeulen <redacted>
Sun, 15 Jul 2012 02:32:21 +0000 (04:32 +0200)
committerBert Vermeulen <redacted>
Fri, 3 Aug 2012 08:27:39 +0000 (10:27 +0200)
hardware/fx2lafw/fx2lafw.c

index cc31041e7980d02fb4b37a73462921ff52daff41..d7fdf2f52c36c433ae0d2de086cb062173fdc31e 100644 (file)
@@ -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;