From 3edb3a47b275c6608455183ee8d01ecb528fd3ed Mon Sep 17 00:00:00 2001 From: Diego Herranz Date: Mon, 7 Dec 2020 09:29:43 +0000 Subject: [PATCH] drivers/leds/ws2812: fix code style As reported by the CI checks. --- drivers/leds/ws2812.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/leds/ws2812.c b/drivers/leds/ws2812.c index 18037c0fa9..bc58f9d105 100644 --- a/drivers/leds/ws2812.c +++ b/drivers/leds/ws2812.c @@ -41,23 +41,22 @@ /* In order to meet the signaling timing requirements, the waveforms required * to represent a 0/1 symbol are created by specific SPI bytes defined here. - * + * * Only two target frequencies: 4 MHz and 8 MHz. However, given the tolerance * allowed in the WS2812 timing specs, two ranges around those target - * frequencies can be used for better flexibility. Extreme frequencies rounded - * to the nearest multiple of 100 kHz which meets the specs. Try to avoid - * using the extreme frequencies. - * + * frequencies can be used for better flexibility. Extreme frequencies + * rounded to the nearest multiple of 100 kHz which meets the specs. + * Try to avoid using the extreme frequencies. + * * If using an LED different to the WS2812 (e.g. WS2812B) check its timing * specs, which may vary slightly, to decide which frequency is safe to use. - * + * * WS2812 specs: * T0H range: 200ns - 500ns * T1H range: 550ns - 850ns * Reset: low signal >50us */ - #if CONFIG_WS2812_FREQUENCY >= 3600000 && CONFIG_WS2812_FREQUENCY <= 5000000 # define WS2812_ZERO_BYTE 0b01000000 /* 200ns at 5 MHz, 278ns at 3.6 MHz */ # define WS2812_ONE_BYTE 0b01110000 /* 600ns at 5 MHz, 833ns at 3.6 MHz */