]> sigrok.org Git - libsigrok.git/blobdiff - hardware/chronovu-la8/chronovu-la8.c
sr: Made hwcap const
[libsigrok.git] / hardware / chronovu-la8 / chronovu-la8.c
index ee112ed05fbb7527616f2532b6f489fb04c9793a..a08b4b7f59864583272721ad0a19ba5f8c8008c5 100644 (file)
@@ -128,7 +128,7 @@ static struct sr_samplerates samplerates = {
 };
 
 /* Note: Continuous sampling is not supported by the hardware. */
-static int hwcaps[] = {
+static const int hwcaps[] = {
        SR_HWCAP_LOGIC_ANALYZER,
        SR_HWCAP_SAMPLERATE,
        SR_HWCAP_LIMIT_MSEC, /* TODO: Not yet implemented. */
@@ -753,7 +753,7 @@ static int hw_dev_status_get(int dev_index)
        return sdi->status;
 }
 
-static int *hw_hwcap_get_all(void)
+static const int *hw_hwcap_get_all(void)
 {
        sr_spew("la8: Returning list of device capabilities.");