greybus: loopback: use u32 for stats update
authorAlex Elder <elder@linaro.org>
Mon, 3 Aug 2015 17:57:13 +0000 (12:57 -0500)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 4 Aug 2015 03:11:49 +0000 (20:11 -0700)
The only values supplied to gb_loopback_update_stats() are 32-bits,
so change the type of the second argument to reflect that.

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

index cdefaffc2184958dc433af80118deee08760b21f..2042bed075d4e5a363710184a76a6054606cf372 100644 (file)
@@ -348,7 +348,7 @@ static void gb_loopback_reset_stats(struct gb_loopback *gb)
               sizeof(struct gb_loopback_stats));
 }
 
-static void gb_loopback_update_stats(struct gb_loopback_stats *stats, u64 val)
+static void gb_loopback_update_stats(struct gb_loopback_stats *stats, u32 val)
 {
        if (stats->min > val)
                stats->min = val;