]> sigrok.org Git - libsigrok.git/blobdiff - device.c
sr: deprecate driver API call hwcap_get_all()
[libsigrok.git] / device.c
index d32b4e954a48782b154e741d9751b49ab074ed1d..fb8d60b28a5c3ad6dd20123a15120ba3c9bbdc28 100644 (file)
--- a/device.c
+++ b/device.c
@@ -397,7 +397,8 @@ SR_API gboolean sr_dev_has_hwcap(const struct sr_dev *dev, int hwcap)
 
        /* TODO: Sanity check on 'hwcap'. */
 
-       if (!(hwcaps = dev->driver->hwcap_get_all())) {
+       if (dev->driver->info_get(SR_DI_HWCAPS,
+                       (const void **)&hwcaps, NULL) != SR_OK) {
                sr_err("dev: %s: dev has no capabilities", __func__);
                return FALSE;
        }