]> sigrok.org Git - libsigrok.git/blobdiff - hardware/zeroplus-logic-cube/zeroplus.c
sr: Made the dev_info_get return value const
[libsigrok.git] / hardware / zeroplus-logic-cube / zeroplus.c
index 1b779878b9be8205700ea050109a4781bcd49ccc..95033ccddb3ca9060b2d067cec69c75c960a89b3 100644 (file)
@@ -499,11 +499,11 @@ static int hw_cleanup(void)
        return SR_OK;
 }
 
-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;
+       const void *info;
 
        if (!(sdi = sr_dev_inst_get(dev_insts, dev_index))) {
                sr_err("zp: %s: sdi was NULL", __func__);