Deprecate SR_DI_COUPLING.

This is replaced by SR_CONF_COUPLING.
This commit is contained in:
Bert Vermeulen 2013-01-25 11:04:27 +01:00
parent 6d1ceffa95
commit 2a7b113d13
3 changed files with 6 additions and 8 deletions

View File

@ -444,9 +444,6 @@ static int config_get(int id, const void **data, const struct sr_dev_inst *sdi)
case SR_DI_VDIVS: case SR_DI_VDIVS:
*data = vdivs; *data = vdivs;
break; break;
case SR_DI_COUPLING:
*data = coupling;
break;
/* TODO remove this */ /* TODO remove this */
case SR_CONF_SAMPLERATE: case SR_CONF_SAMPLERATE:
*data = &tmp; *data = &tmp;
@ -586,6 +583,9 @@ static int config_list(int key, const void **data, const struct sr_dev_inst *sdi
case SR_CONF_BUFFERSIZE: case SR_CONF_BUFFERSIZE:
*data = buffersizes; *data = buffersizes;
break; break;
case SR_CONF_COUPLING:
*data = coupling;
break;
default: default:
return SR_ERR_ARG; return SR_ERR_ARG;
} }

View File

@ -341,9 +341,6 @@ static int config_get(int id, const void **data, const struct sr_dev_inst *sdi)
case SR_DI_VDIVS: case SR_DI_VDIVS:
*data = vdivs; *data = vdivs;
break; break;
case SR_DI_COUPLING:
*data = coupling;
break;
default: default:
return SR_ERR_ARG; return SR_ERR_ARG;
} }
@ -445,6 +442,9 @@ static int config_list(int key, const void **data, const struct sr_dev_inst *sdi
(void)sdi; (void)sdi;
switch (key) { switch (key) {
case SR_CONF_COUPLING:
*data = coupling;
break;
default: default:
return SR_ERR_ARG; return SR_ERR_ARG;
} }

View File

@ -561,8 +561,6 @@ enum {
SR_DI_FILTERS, SR_DI_FILTERS,
/** Valid volts/div values. */ /** Valid volts/div values. */
SR_DI_VDIVS, SR_DI_VDIVS,
/** Coupling options. */
SR_DI_COUPLING,
}; };
/* /*