Remove sr_rational

This commit is contained in:
Bert Vermeulen 2013-04-26 22:17:41 +02:00
parent bc653a5678
commit b9470914d0
2 changed files with 2 additions and 10 deletions

View File

@ -42,7 +42,7 @@ static const int32_t hwcaps[] = {
SR_CONF_VDIV,
};
static const struct sr_rational timebases[] = {
static const uint64_t timebases[][2] = {
/* 24 MHz */
{ 42, 1e9 },
/* 12 MHz */
@ -94,7 +94,7 @@ static const char *probe_names[] = {
NULL,
};
static const struct sr_rational vdivs[] = {
static const uint64_t vdivs[][2] = {
{ 1, 1 },
{ 2, 1 },
{ 5, 2 },

View File

@ -138,14 +138,6 @@ enum {
SR_T_KEYVALUE,
};
/** Rational number data type, containing numerator and denominator values. */
struct sr_rational {
/** Numerator of the rational number. */
uint64_t p;
/** Denominator of the rational number. */
uint64_t q;
};
/** Value for sr_datafeed_packet.type. */
enum {
SR_DF_HEADER = 10000,