Skip to content

Commit

Permalink
drivers: led_strip: ws2812_gpio: Fixup one missed DT_INST conversion
Browse files Browse the repository at this point in the history
Fixed one case in which the conversion to the new DT_INST macro's got
missed in the ws2812_gpio driver.

Signed-off-by: Kumar Gala <[email protected]>
  • Loading branch information
galak committed Mar 30, 2020
1 parent 75e28f6 commit 3501766
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/led_strip/ws2812_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ static const struct led_strip_driver_api ws2812_gpio_api = {
*
* TODO: try to make this portable, or at least port to more devices.
*/
#define WS2812_GPIO_CLK(idx) DT_INST_0_NORDIC_NRF_CLOCK_LABEL
#define WS2812_GPIO_CLK(idx) DT_LABEL(DT_INST(0, nordic_nrf_clock))

#define WS2812_GPIO_DEVICE(idx) \
\
Expand Down

0 comments on commit 3501766

Please sign in to comment.