From: Uwe Hermann Date: Thu, 20 Dec 2018 07:35:06 +0000 (+0100) Subject: microchip-pickit2: Drop unneeded prefix. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3aadf5c479924dfe8a25753bdfa785d7a9c3771b;p=libsigrok.git microchip-pickit2: Drop unneeded prefix. --- diff --git a/src/hardware/microchip-pickit2/api.c b/src/hardware/microchip-pickit2/api.c index 1fd107b1..48fb849a 100644 --- a/src/hardware/microchip-pickit2/api.c +++ b/src/hardware/microchip-pickit2/api.c @@ -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); }