]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/atten-pps3xxx/protocol.h
Constify a lot more items.
[libsigrok.git] / src / hardware / atten-pps3xxx / protocol.h
index 36ee281a8e2e63bfa32d1af73f20117ca9e3dcd6..b9a256d17ab820daf73e631890a70bc6ad05278b 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <stdint.h>
 #include <glib.h>
-#include "libsigrok.h"
+#include <libsigrok/libsigrok.h>
 #include "libsigrok-internal.h"
 
 #define LOG_PREFIX "atten-pps3xxx"
@@ -54,7 +54,7 @@ struct channel_spec {
 
 struct pps_model {
        int modelid;
-       char *name;
+       const char *name;
        int channel_modes;
        int num_channels;
        struct channel_spec channels[MAX_CHANNELS];
@@ -74,7 +74,7 @@ struct per_channel_config {
 /** Private, per-device-instance driver context. */
 struct dev_context {
        /* Model-specific information */
-       struct pps_model *model;
+       const struct pps_model *model;
 
        /* Acquisition state */
        gboolean acquisition_running;