greybus: loopback: add gb_loopback_nsec_to_usec_latency
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Sun, 16 Aug 2015 23:55:05 +0000 (00:55 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 18 Aug 2015 16:45:23 +0000 (09:45 -0700)
commitbd416103b204494e29b095e28c5a7b6a77e8f2b9
tree5afdd9ea5760f394d523a1eefe98ef10e6f8bcab
parent67d1eeceb1aab4a192a0f132cd230d41932ba91e
greybus: loopback: add gb_loopback_nsec_to_usec_latency

A helper function to convert from a nanosecond value to a latency value
expressed in mircoseconds. This will be used again in subsequent patches.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/loopback.c