]> sigrok.org Git - libsigrok.git/commitdiff
microchip-pickit2: Drop unneeded prefix.
authorUwe Hermann <redacted>
Thu, 20 Dec 2018 07:35:06 +0000 (08:35 +0100)
committerUwe Hermann <redacted>
Thu, 20 Dec 2018 15:36:09 +0000 (16:36 +0100)
src/hardware/microchip-pickit2/api.c

index 1fd107b1109fa08ee8c0f4ab00aea47a9fcdfd92..48fb849a9a001e3f14042bfa85f7d876a73d2b3d 100644 (file)
@@ -66,7 +66,7 @@
 
 static struct sr_dev_driver microchip_pickit2_driver_info;
 
-static const char *pickit2_channel_names[] = {
+static const char *channel_names[] = {
        "pin4", "pin5", "pin6",
 };
 
@@ -162,10 +162,10 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
                cg = g_malloc0(sizeof(*cg));
                sdi->channel_groups = g_slist_append(NULL, cg);
                cg->name = g_strdup("Logic");
-               ch_count = ARRAY_SIZE(pickit2_channel_names);
+               ch_count = ARRAY_SIZE(channel_names);
                for (ch_idx = 0; ch_idx < ch_count; ch_idx++) {
                        ch = sr_channel_new(sdi, ch_idx, SR_CHANNEL_LOGIC,
-                               TRUE, pickit2_channel_names[ch_idx]);
+                               TRUE, channel_names[ch_idx]);
                        cg->channels = g_slist_append(cg->channels, ch);
                }