link-mso: Eliminate unneeded NUM_CHANNELS.

This commit is contained in:
Uwe Hermann 2015-04-04 19:28:19 +02:00
parent 0f26276329
commit 07962655ec
2 changed files with 1 additions and 2 deletions

View File

@ -213,7 +213,7 @@ static GSList *scan(struct sr_dev_driver *di, GSList *options)
sdi->driver = di;
sdi->priv = devc;
for (i = 0; i < NUM_CHANNELS; i++) {
for (i = 0; i < ARRAY_SIZE(channel_names); i++) {
chtype = (i == 0) ? SR_CHANNEL_ANALOG : SR_CHANNEL_LOGIC;
sr_channel_new(sdi, i, chtype, TRUE, channel_names[i]);
}

View File

@ -34,7 +34,6 @@
#define USB_VENDOR "3195"
#define USB_PRODUCT "f190"
#define NUM_CHANNELS (1 + 8)
#define NUM_TRIGGER_STAGES 4
#define TRIGGER_TYPE "01" //the first r/f is used for the whole group
#define SERIALCOMM "460800/8n1/flow=2"