]> sigrok.org Git - libsigrok.git/blobdiff - hardware/sysclk-lwla/api.c
Rename 'struct sr_probe' to 'struct sr_channel' everywhere.
[libsigrok.git] / hardware / sysclk-lwla / api.c
index 1ff49bf4b7f97d884298da91b395dc705c21b868..525af58ed89ab36f6deb93c6963d4a28f4f4823b 100644 (file)
@@ -75,7 +75,7 @@ static int init(struct sr_context *sr_ctx)
 static GSList *gen_probe_list(int num_probes)
 {
        GSList *list;
-       struct sr_probe *probe;
+       struct sr_channel *probe;
        int i;
        char name[8];
 
@@ -265,12 +265,12 @@ static int cleanup(void)
 }
 
 static int config_get(int key, GVariant **data, const struct sr_dev_inst *sdi,
-                     const struct sr_channel_group *channel_group)
+                     const struct sr_channel_group *cg)
 {
        struct dev_context *devc;
        size_t idx;
 
-       (void)channel_group;
+       (void)cg;
 
        if (!sdi)
                return SR_ERR_ARG;
@@ -337,13 +337,13 @@ static int lookup_index(GVariant *value, const char *const *table, int len)
 }
 
 static int config_set(int key, GVariant *data, const struct sr_dev_inst *sdi,
-                     const struct sr_channel_group *channel_group)
+                     const struct sr_channel_group *cg)
 {
        uint64_t value;
        struct dev_context *devc;
        int idx;
 
-       (void)channel_group;
+       (void)cg;
 
        devc = sdi->priv;
        if (!devc)
@@ -402,7 +402,7 @@ static int config_set(int key, GVariant *data, const struct sr_dev_inst *sdi,
 }
 
 static int config_probe_set(const struct sr_dev_inst *sdi,
-                           struct sr_probe *probe, unsigned int changes)
+                           struct sr_channel *probe, unsigned int changes)
 {
        uint64_t probe_bit;
        uint64_t trigger_mask;
@@ -477,13 +477,13 @@ static int config_commit(const struct sr_dev_inst *sdi)
 }
 
 static int config_list(int key, GVariant **data, const struct sr_dev_inst *sdi,
-                      const struct sr_channel_group *channel_group)
+                      const struct sr_channel_group *cg)
 {
        GVariant *gvar;
        GVariantBuilder gvb;
 
        (void)sdi;
-       (void)channel_group;
+       (void)cg;
 
        switch (key) {
        case SR_CONF_SCAN_OPTIONS: