]> sigrok.org Git - libsigrok.git/blobdiff - hardware/asix-sigma/asix-sigma.c
sr: Made the dev_info_get return value const
[libsigrok.git] / hardware / asix-sigma / asix-sigma.c
index e5bd550520111fcf4147df7cbb27641051d87bbc..12d312442ec62dc2898e16f0ba055229002d2cce 100644 (file)
@@ -753,11 +753,11 @@ static int hw_cleanup(void)
        return ret;
 }
 
-static void *hw_dev_info_get(int dev_index, int dev_info_id)
+static const void *hw_dev_info_get(int dev_index, int dev_info_id)
 {
        struct sr_dev_inst *sdi;
        struct context *ctx;
-       void *info = NULL;
+       const void *info = NULL;
 
        if (!(sdi = sr_dev_inst_get(dev_insts, dev_index))) {
                sr_err("sigma: %s: sdi was NULL", __func__);