From: Bert Vermeulen Date: Fri, 26 Apr 2013 20:17:41 +0000 (+0200) Subject: Remove sr_rational X-Git-Tag: dsupstream~55 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b9470914d045f05e445e9f25a3b4f0cc79bc6681;p=libsigrok.git Remove sr_rational --- diff --git a/hardware/nexus-osciprime/api.c b/hardware/nexus-osciprime/api.c index b81b9e88..238cda51 100644 --- a/hardware/nexus-osciprime/api.c +++ b/hardware/nexus-osciprime/api.c @@ -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 }, diff --git a/libsigrok.h b/libsigrok.h index 8b9239ad..24934baa 100644 --- a/libsigrok.h +++ b/libsigrok.h @@ -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,