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

index f38c80d7b68a6da27abb5363edb567218ed08e84..4fd07eab18f38a8244553f2c6057289cb6e11bc3 100644 (file)
@@ -396,6 +396,9 @@ static int hw_info_get(int info_id, const void **data,
        case SR_DI_INST:
                *data = sdi;
                break;
+       case SR_DI_HWCAPS:
+               *data = hwcaps;
+               break;
        case SR_DI_NUM_PROBES:
                *data = GINT_TO_POINTER(NUM_PROBES);
                break;
@@ -441,11 +444,6 @@ static int hw_dev_status_get(int dev_index)
        return sdi->status;
 }
 
-static const int *hw_hwcap_get_all(void)
-{
-       return hwcaps;
-}
-
 static int hw_dev_config_set(int dev_index, int hwcap, const void *value)
 {
        struct sr_dev_inst *sdi;
@@ -882,7 +880,6 @@ SR_PRIV struct sr_dev_driver hantek_dso_driver_info = {
        .dev_close = hw_dev_close,
        .info_get = hw_info_get,
        .dev_status_get = hw_dev_status_get,
-//     .hwcap_get_all = hw_hwcap_get_all,
        .dev_config_set = hw_dev_config_set,
        .dev_acquisition_start = hw_dev_acquisition_start,
        .dev_acquisition_stop = hw_dev_acquisition_stop,