]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/scpi-pps/api.c
drivers: Use ARRAY_AND_SIZE where possible.
[libsigrok.git] / src / hardware / scpi-pps / api.c
index 5a847eb2257c81e342701589f57446f13e414543..f97b07109eae6ffb66e105d764979620934b6bff 100644 (file)
@@ -524,8 +524,8 @@ static int config_list(uint32_t key, GVariant **data, const struct sr_dev_inst *
                case SR_CONF_SCAN_OPTIONS:
                case SR_CONF_DEVICE_OPTIONS:
                        return std_opts_config_list(key, data, sdi, cg,
-                               scanopts, ARRAY_SIZE(scanopts),
-                               drvopts, ARRAY_SIZE(drvopts),
+                               ARRAY_AND_SIZE(scanopts),
+                               ARRAY_AND_SIZE(drvopts),
                                (devc) ? devc->device->devopts : NULL,
                                (devc) ? devc->device->num_devopts : 0);
                        break;