]> sigrok.org Git - libsigrok.git/blobdiff - hardware/chronovu-la8/chronovu-la8.c
sr: Made the dev_info_get return value const
[libsigrok.git] / hardware / chronovu-la8 / chronovu-la8.c
index a08b4b7f59864583272721ad0a19ba5f8c8008c5..38902908b7cdf06e3434653b47d930b24e567ea3 100644 (file)
@@ -681,11 +681,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;
+       const void *info;
 
        if (!(sdi = sr_dev_inst_get(dev_insts, dev_index))) {
                sr_err("la8: %s: sdi was NULL", __func__);