Deprecate SR_DI_COUPLING.
This is replaced by SR_CONF_COUPLING.
This commit is contained in:
parent
6d1ceffa95
commit
2a7b113d13
|
@ -444,9 +444,6 @@ static int config_get(int id, const void **data, const struct sr_dev_inst *sdi)
|
|||
case SR_DI_VDIVS:
|
||||
*data = vdivs;
|
||||
break;
|
||||
case SR_DI_COUPLING:
|
||||
*data = coupling;
|
||||
break;
|
||||
/* TODO remove this */
|
||||
case SR_CONF_SAMPLERATE:
|
||||
*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:
|
||||
*data = buffersizes;
|
||||
break;
|
||||
case SR_CONF_COUPLING:
|
||||
*data = coupling;
|
||||
break;
|
||||
default:
|
||||
return SR_ERR_ARG;
|
||||
}
|
||||
|
|
|
@ -341,9 +341,6 @@ static int config_get(int id, const void **data, const struct sr_dev_inst *sdi)
|
|||
case SR_DI_VDIVS:
|
||||
*data = vdivs;
|
||||
break;
|
||||
case SR_DI_COUPLING:
|
||||
*data = coupling;
|
||||
break;
|
||||
default:
|
||||
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;
|
||||
|
||||
switch (key) {
|
||||
case SR_CONF_COUPLING:
|
||||
*data = coupling;
|
||||
break;
|
||||
default:
|
||||
return SR_ERR_ARG;
|
||||
}
|
||||
|
|
|
@ -561,8 +561,6 @@ enum {
|
|||
SR_DI_FILTERS,
|
||||
/** Valid volts/div values. */
|
||||
SR_DI_VDIVS,
|
||||
/** Coupling options. */
|
||||
SR_DI_COUPLING,
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue