Add an instance argument to the SPIDEV definitions.

This commit is contained in:
Gregory Nutt
2017-04-29 12:26:52 -06:00
parent 73c78fb690
commit e9a5477506
102 changed files with 536 additions and 536 deletions
+3 -3
View File
@@ -491,15 +491,15 @@ static void spi_select(FAR struct spi_dev_s *dev, uint32_t devid, bool selected)
* be in board specific code..... */
switch (devid)
{
case SPIDEV_FLASH:
case SPIDEV_FLASH(0):
slave = 0;
break;
case SPIDEV_MMCSD:
case SPIDEV_MMCSD(0):
slave = 1;
break;
case SPIDEV_ETHERNET:
case SPIDEV_ETHERNET(0):
slave = 2;
break;