From 94450374e7202fb85c386d9ed47400c965b28a44 Mon Sep 17 00:00:00 2001 From: Steven Cooreman Date: Tue, 28 Mar 2017 23:55:26 +0200 Subject: [PATCH] Update to 4 spaces/tab --- .../TARGET_EFM32/trng/trng_api.c | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/targets/TARGET_Silicon_Labs/TARGET_EFM32/trng/trng_api.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/trng/trng_api.c index 62244545f2..f9251ce2b5 100644 --- a/targets/TARGET_Silicon_Labs/TARGET_EFM32/trng/trng_api.c +++ b/targets/TARGET_Silicon_Labs/TARGET_EFM32/trng/trng_api.c @@ -29,27 +29,27 @@ static bool is_trng_enabled = false; void trng_init(trng_t *obj) { - /* Use TRNG0 for all HW entropy collection */ - obj->instance = TRNG0; - - if(!is_trng_enabled) { - sl_trng_init(obj->instance); - is_trng_enabled = true; - } + /* Use TRNG0 for all HW entropy collection */ + obj->instance = TRNG0; + + if(!is_trng_enabled) { + sl_trng_init(obj->instance); + is_trng_enabled = true; + } } void trng_free(trng_t *obj) { - /* Don't turn off the TRNG to avoid clearing its FIFO */ - (void) obj; + /* Don't turn off the TRNG to avoid clearing its FIFO */ + (void) obj; } int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t *output_length) { - int ret = sl_trng_poll(obj->instance, - output, - length, - output_length); - return (ret == 0) ? 0 : -1; + int ret = sl_trng_poll(obj->instance, + output, + length, + output_length); + return (ret == 0) ? 0 : -1; } #endif /* DEVICE_TRNG */