Fix to get a clean build with EEPROM support disabled
This commit is contained in:
parent
70981eb7d5
commit
1a33afb66c
@ -33,11 +33,15 @@
|
|||||||
#
|
#
|
||||||
############################################################################
|
############################################################################
|
||||||
|
|
||||||
ifneq ($(CONFIG_SPI_EE_25XX),0)
|
# Include SPI EEPROM support
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_SPI_EEPROM),y)
|
||||||
|
|
||||||
# Include the Microchip/Atmel xx25xx driver
|
# Include the Microchip/Atmel xx25xx driver
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_SPI_EE_25XX),y)
|
||||||
CSRCS += spi_xx25xx.c
|
CSRCS += spi_xx25xx.c
|
||||||
|
endif
|
||||||
|
|
||||||
# Include build support
|
# Include build support
|
||||||
|
|
||||||
|
@ -612,11 +612,9 @@ static ssize_t ee25xx_read(FAR struct file *filep, FAR char *buffer,
|
|||||||
SPI_SELECT(eedev->spi, SPIDEV_EEPROM, false);
|
SPI_SELECT(eedev->spi, SPIDEV_EEPROM, false);
|
||||||
ee25xx_unlock(eedev->spi);
|
ee25xx_unlock(eedev->spi);
|
||||||
|
|
||||||
if (ret > 0)
|
/* Update the file position */
|
||||||
{
|
|
||||||
filep->f_pos += len;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
filep->f_pos += len;
|
||||||
ee25xx_semgive(eedev);
|
ee25xx_semgive(eedev);
|
||||||
return len;
|
return len;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user