drivers: flash: spi_nor.c: Correct the calculation of SECTORS_COUNT

The patch 44758977f8 made a change where
SECTORS_COUNT was not calculated properly. This patch corrects it.

Signed-off-by: Rajavardhan Gundi <rajavardhan.gundi@intel.com>
This commit is contained in:
Rajavardhan Gundi 2019-02-14 15:42:17 +05:30 committed by Anas Nashif
parent 26d3576e0f
commit 95e8a582b4

View File

@ -27,7 +27,7 @@
#define MASK_64K 0xFFFF
#define SPI_NOR_MAX_ADDR_WIDTH 4
#define SECTORS_COUNT ((DT_JEDEC_SPI_NOR_0_SIZE / 8192) \
#define SECTORS_COUNT ((DT_JEDEC_SPI_NOR_0_SIZE / 8) \
/ CONFIG_SPI_NOR_SECTOR_SIZE)
#define JEDEC_ID(x) \