X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=blobdiff_plain;f=src%2Fhardware%2Funi-t-ut32x%2Fapi.c;h=4d963afb0c0cf8ff274283df557f410c51b798f9;hp=bd792ea1e2354190b7b2ca77670c669b031e7ccc;hb=0f34cb472368be61aa2e7bc9d9d1b25bb28aa560;hpb=db24496ac8575e917996e7812279987f2141c298 diff --git a/src/hardware/uni-t-ut32x/api.c b/src/hardware/uni-t-ut32x/api.c index bd792ea1..4d963afb 100644 --- a/src/hardware/uni-t-ut32x/api.c +++ b/src/hardware/uni-t-ut32x/api.c @@ -28,10 +28,8 @@ static const uint32_t devopts[] = { SR_CONF_DATA_SOURCE | SR_CONF_GET | SR_CONF_SET | SR_CONF_LIST, }; -static char *channels[] = { - "T1", - "T2", - "T1-T2", +static const char *channel_names[] = { + "T1", "T2", "T1-T2", }; static const char *data_sources[] = { @@ -84,7 +82,8 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options) sdi->inst_type = SR_INST_USB; sdi->conn = l->data; for (i = 0; i < 3; i++) - sr_channel_new(sdi, i, SR_CHANNEL_ANALOG, TRUE, channels[i]); + sr_channel_new(sdi, i, SR_CHANNEL_ANALOG, TRUE, + channel_names[i]); devc = g_malloc0(sizeof(struct dev_context)); sdi->priv = devc; devc->limit_samples = 0;