ws2812: moved SPI_LOCK and forgot to change spi drv var name

This snuck in durring a slight PR fixup.
This commit is contained in:
Brennan Ashton 2020-09-16 16:30:11 -07:00 committed by Abdelatif Guettouche
parent 5bb4eb39f2
commit f41b9a10b3
1 changed files with 1 additions and 1 deletions

View File

@ -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);