From: Bert Vermeulen Date: Sun, 15 Jul 2012 02:31:22 +0000 (+0200) Subject: asix-sigma: don't use deprecated hwcap_get_all() driver API call X-Git-Tag: dsupstream~797 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b2b5445c304ee2a6fe352e9b33f1e695a6760da5;p=libsigrok.git asix-sigma: don't use deprecated hwcap_get_all() driver API call --- diff --git a/hardware/asix-sigma/asix-sigma.c b/hardware/asix-sigma/asix-sigma.c index e0a435a0..42526214 100644 --- a/hardware/asix-sigma/asix-sigma.c +++ b/hardware/asix-sigma/asix-sigma.c @@ -789,6 +789,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; @@ -826,11 +829,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 hw_dev_config_set(int dev_index, int hwcap, const void *value) { struct sr_dev_inst *sdi; @@ -1470,7 +1468,6 @@ SR_PRIV struct sr_dev_driver asix_sigma_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,