Skip to content

Commit f8be297

Browse files
committed
Update to 4 spaces/tab
1 parent 88c996e commit f8be297

File tree

1 file changed

+14
-14
lines changed
  • targets/TARGET_Silicon_Labs/TARGET_EFM32/trng

1 file changed

+14
-14
lines changed

targets/TARGET_Silicon_Labs/TARGET_EFM32/trng/trng_api.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,27 +29,27 @@ static bool is_trng_enabled = false;
2929

3030
void trng_init(trng_t *obj)
3131
{
32-
/* Use TRNG0 for all HW entropy collection */
33-
obj->instance = TRNG0;
34-
35-
if(!is_trng_enabled) {
36-
sl_trng_init(obj->instance);
37-
is_trng_enabled = true;
38-
}
32+
/* Use TRNG0 for all HW entropy collection */
33+
obj->instance = TRNG0;
34+
35+
if(!is_trng_enabled) {
36+
sl_trng_init(obj->instance);
37+
is_trng_enabled = true;
38+
}
3939
}
4040

4141
void trng_free(trng_t *obj)
4242
{
43-
/* Don't turn off the TRNG to avoid clearing its FIFO */
44-
(void) obj;
43+
/* Don't turn off the TRNG to avoid clearing its FIFO */
44+
(void) obj;
4545
}
4646

4747
int trng_get_bytes(trng_t *obj, uint8_t *output, size_t length, size_t *output_length)
4848
{
49-
int ret = sl_trng_poll(obj->instance,
50-
output,
51-
length,
52-
output_length);
53-
return (ret == 0) ? 0 : -1;
49+
int ret = sl_trng_poll(obj->instance,
50+
output,
51+
length,
52+
output_length);
53+
return (ret == 0) ? 0 : -1;
5454
}
5555
#endif /* DEVICE_TRNG */

0 commit comments

Comments
 (0)