Deprecate SR_DI_PATTERNS.

This is replaced by SR_CONF_PATTERN_MODE.
This commit is contained in:
Bert Vermeulen 2013-01-25 03:38:44 +01:00
parent 123e131383
commit dd96ea9879
2 changed files with 3 additions and 5 deletions

View File

@ -237,9 +237,6 @@ static int config_get(int id, const void **data, const struct sr_dev_inst *sdi)
case SR_CONF_SAMPLERATE:
*data = &cur_samplerate;
break;
case SR_DI_PATTERNS:
*data = &pattern_strings;
break;
default:
return SR_ERR_ARG;
}
@ -304,6 +301,9 @@ static int config_list(int key, const void **data, const struct sr_dev_inst *sdi
case SR_CONF_SAMPLERATE:
*data = &samplerates;
break;
case SR_CONF_PATTERN_MODE:
*data = &pattern_strings;
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 patterns (in pattern generator mode). */
SR_DI_PATTERNS,
/** Supported buffer sizes. */
SR_DI_BUFFERSIZES,
/** Supported time bases. */