From 7566601c21fd748827065ca120b88a6a141c922e Mon Sep 17 00:00:00 2001 From: Bert Vermeulen Date: Sun, 15 Jul 2012 04:31:37 +0200 Subject: [PATCH] chronovu-la8: don't use deprecated hwcap_get_all() driver API call --- hardware/chronovu-la8/api.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/hardware/chronovu-la8/api.c b/hardware/chronovu-la8/api.c index 09daa6cb..cf0a11c8 100644 --- a/hardware/chronovu-la8/api.c +++ b/hardware/chronovu-la8/api.c @@ -277,6 +277,9 @@ static int hw_info_get(int info_id, const void **data, *data = sdi; sr_spew("la8: %s: Returning sdi.", __func__); break; + case SR_DI_HWCAPS: + *data = hwcaps; + break; case SR_DI_NUM_PROBES: *data = GINT_TO_POINTER(NUM_PROBES); sr_spew("la8: %s: Returning number of probes: %d.", __func__, @@ -326,13 +329,6 @@ static int hw_dev_status_get(int dev_index) return sdi->status; } -static const int *hw_hwcap_get_all(void) -{ - sr_spew("la8: Returning list of device capabilities."); - - return hwcaps; -} - static int hw_dev_config_set(int dev_index, int hwcap, const void *value) { struct sr_dev_inst *sdi; @@ -558,7 +554,6 @@ SR_PRIV struct sr_dev_driver chronovu_la8_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,