Deprecate SR_DI_TIMEBASES.

This is replaced by SR_CONF_TIMEBASE.
This commit is contained in:
Bert Vermeulen 2013-01-25 11:22:20 +01:00
parent 6e1fbcc41b
commit 41f5bd09b0
3 changed files with 6 additions and 8 deletions

View File

@ -432,9 +432,6 @@ static int config_get(int id, const void **data, const struct sr_dev_inst *sdi)
case SR_DI_HWCAPS:
*data = hwcaps;
break;
case SR_DI_TIMEBASES:
*data = timebases;
break;
case SR_DI_TRIGGER_SOURCES:
*data = trigger_sources;
break;
@ -586,6 +583,9 @@ static int config_list(int key, const void **data, const struct sr_dev_inst *sdi
case SR_CONF_FILTER:
*data = filter_targets;
break;
case SR_CONF_TIMEBASE:
*data = timebases;
break;
default:
return SR_ERR_ARG;
}

View File

@ -332,9 +332,6 @@ static int config_get(int id, const void **data, const struct sr_dev_inst *sdi)
case SR_DI_HWCAPS:
*data = hwcaps;
break;
case SR_DI_TIMEBASES:
*data = timebases;
break;
case SR_DI_TRIGGER_SOURCES:
*data = trigger_sources;
break;
@ -445,6 +442,9 @@ static int config_list(int key, const void **data, const struct sr_dev_inst *sdi
case SR_CONF_VDIV:
*data = vdivs;
break;
case SR_CONF_TIMEBASE:
*data = timebases;
break;
default:
return SR_ERR_ARG;
}

View File

@ -553,8 +553,6 @@ enum {
SR_DI_HWCAPS,
/** Types of logic trigger supported, out of "01crf" (char *). */
SR_DI_TRIGGER_TYPES,
/** Supported time bases. */
SR_DI_TIMEBASES,
/** Supported trigger sources. */
SR_DI_TRIGGER_SOURCES,
};