#include #include "taia.h" static const struct taia tolerance_taia = { .sec.x = 0, .nano = 700000000ULL, /* 700ms acceptance window */ .atto = 0, }; bool taia_looks_good(struct taia *arr_taia, struct taia *pkt_taia) { bool good = false; struct taia tmp; if (taia_less(arr_taia, pkt_taia)) { taia_sub(&tmp, pkt_taia, arr_taia); if (taia_less(&tmp, &tolerance_taia)) good = true; } else { taia_sub(&tmp, arr_taia, pkt_taia); if (taia_less(&tmp, &tolerance_taia)) good = true; } return good; } '/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2016-11-15 15:01:09 +0000
committerMark Brown <broonie@kernel.org>2016-11-15 15:22:10 +0000
commit53a20465e6b674eb6ce594b0e9e8940495e95f33 (patch)
tree4d4c29c7c68ab2a1b69e4bd3903949356d2467e8 /drivers/usb/serial
parent1001354ca34179f3db924eb66672442a173147dc (diff)
regulator: pwm: Add missing quotes to DT example
Reported-by: Peter Rosin <peda@axentia.se> Signed-off-by: Mark Brown <broonie@kernel.org> Acked-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/usb/serial')