Commit 6e9606db authored by Soeren Apel's avatar Soeren Apel

lecroy-xstream: Comment/style fixes

parent 095eba19
...@@ -431,27 +431,19 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi) ...@@ -431,27 +431,19 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi)
g_slist_free(devc->enabled_channels); g_slist_free(devc->enabled_channels);
devc->enabled_channels = NULL; devc->enabled_channels = NULL;
/* /* Contruct the list of enabled channels. */
* Contruct the list of enabled channels. Determine the highest
* number of digital pods involved in the acquisition.
*/
for (l = sdi->channels; l; l = l->next) { for (l = sdi->channels; l; l = l->next) {
ch = l->data; ch = l->data;
if (!ch->enabled) if (!ch->enabled)
continue; continue;
/* Only add a single digital channel per group (pod). */
devc->enabled_channels = g_slist_append( devc->enabled_channels = g_slist_append(devc->enabled_channels, ch);
devc->enabled_channels, ch);
} }
if (!devc->enabled_channels) if (!devc->enabled_channels)
return SR_ERR; return SR_ERR;
/* /* Configure the analog channels. */
* Configure the analog channels and the
* corresponding digital pods.
*/
if (setup_channels(sdi) != SR_OK) { if (setup_channels(sdi) != SR_OK) {
sr_err("Failed to setup channel configuration!"); sr_err("Failed to setup channel configuration!");
ret = SR_ERR; ret = SR_ERR;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment