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

index 359ff9c875a3c67ae082442ca2db77f5d05731fe..dd484a58614cd68f4e755e49d762806f2c4e1bec 100644 (file)
@@ -527,6 +527,9 @@ static int hw_info_get(int info_id, const void **data,
                *data = sdi;
                sr_spew("zp: %s: Returning sdi.", __func__);
                break;
+       case SR_DI_HWCAPS:
+               *data = hwcaps;
+               break;
        case SR_DI_NUM_PROBES:
                if (sdi) {
                        ctx = sdi->priv;
@@ -575,11 +578,6 @@ static int hw_dev_status_get(int dev_index)
                return SR_ST_NOT_FOUND;
 }
 
-static const int *hw_hwcap_get_all(void)
-{
-       return hwcaps;
-}
-
 static int set_samplerate(struct sr_dev_inst *sdi, uint64_t samplerate)
 {
        struct context *ctx;
@@ -754,7 +752,6 @@ SR_PRIV struct sr_dev_driver zeroplus_logic_cube_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,