]> sigrok.org Git - libsigrok.git/blobdiff - hardware/asix-sigma/asix-sigma.c
sr: Made hwcap const
[libsigrok.git] / hardware / asix-sigma / asix-sigma.c
index 39e2dbed79cb8ef364557173c0a6b7a96abb436b..e5bd550520111fcf4147df7cbb27641051d87bbc 100644 (file)
@@ -88,7 +88,7 @@ static struct sr_samplerates samplerates = {
        supported_samplerates,
 };
 
-static int hwcaps[] = {
+static const int hwcaps[] = {
        SR_HWCAP_LOGIC_ANALYZER,
        SR_HWCAP_SAMPLERATE,
        SR_HWCAP_CAPTURE_RATIO,
@@ -801,7 +801,7 @@ static int hw_dev_status_get(int dev_index)
                return SR_ST_NOT_FOUND;
 }
 
-static int *hw_hwcap_get_all(void)
+static const int *hw_hwcap_get_all(void)
 {
        return hwcaps;
 }