greybus: loopback: use separate attribute macro for average
authorAlex Elder <elder@linaro.org>
Mon, 3 Aug 2015 17:57:18 +0000 (12:57 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 4 Aug 2015 03:12:50 +0000 (20:12 -0700)
commit7a135a965c62f7abdf8f3acc5ca45a03d27b272c
treea8031d0e4273a567270cc69504bb2d511b93f750
parent19c2a443c9efc87ae19d0ef7a5d212614a92479e
greybus: loopback: use separate attribute macro for average

Define a separate macro for displaying the average of the samples
collected.  This will be used so we can calculate the average only
when requested, rather than every time a new value gets recorded.

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