You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/09/28 07:25:50 UTC

[incubator-nuttx] branch master updated: ws2812: moved SPI_LOCK and forgot to change spi drv var name

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new f41b9a1  ws2812: moved SPI_LOCK and forgot to change spi drv var name
f41b9a1 is described below

commit f41b9a10b3ec4b9ca811c6a68c4b4c639cd5a0c4
Author: Brennan Ashton <ba...@brennanashton.com>
AuthorDate: Wed Sep 16 16:30:11 2020 -0700

    ws2812: moved SPI_LOCK and forgot to change spi drv var name
    
    This snuck in durring a slight PR fixup.
---
 drivers/leds/ws2812.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/leds/ws2812.c b/drivers/leds/ws2812.c
index c770d50..0a5ca85 100644
--- a/drivers/leds/ws2812.c
+++ b/drivers/leds/ws2812.c
@@ -134,7 +134,7 @@ static inline void ws2812_configspi(FAR struct spi_dev_s *spi)
    * There is no CS on this device we just use MOSI and it is exclusive
    */
 
-  SPI_LOCK(priv->spi, true);  /* Exclusive use of the bus */
+  SPI_LOCK(spi, true);  /* Exclusive use of the bus */
   SPI_SETMODE(spi, SPIDEV_MODE3);
   SPI_SETBITS(spi, 8);
   SPI_HWFEATURES(spi, 0);