]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/yokogawa-dlm/protocol.h
Constify a few arrays and variables.
[libsigrok.git] / src / hardware / yokogawa-dlm / protocol.h
index 523403d5cff4699d989fe9daa43dc2eaf22bf782..0bdb7f2f58f1add1595ce8f6d8fe2fb8c2210d61 100644 (file)
@@ -41,7 +41,6 @@
 #define DLM_DIVISION_FOR_WORD_FORMAT (3200)
 #define DLM_DIVISION_FOR_BYTE_FORMAT (12.5)
 
-
 enum trigger_slopes {
        SLOPE_POSITIVE,
        SLOPE_NEGATIVE
@@ -57,11 +56,11 @@ struct scope_config {
        const char *(*analog_names)[];
        const char *(*digital_names)[];
 
-       const uint32_t (*hw_caps)[];
-       const uint8_t num_hwcaps;
+       const uint32_t (*devopts)[];
+       const uint8_t num_devopts;
 
-       const uint32_t (*analog_hwcaps)[];
-       const uint8_t num_analog_hwcaps;
+       const uint32_t (*analog_devopts)[];
+       const uint8_t num_analog_devopts;
 
        const char *(*coupling_options)[];
        const uint8_t num_coupling_options;
@@ -106,7 +105,7 @@ struct scope_state {
 
 /** Private, per-device-instance driver context. */
 struct dev_context {
-       void *model_config;
+       const void *model_config;
        void *model_state;
 
        struct sr_channel_group **analog_groups;