From 8e4d461d61b26e3604b6b750ef4b6ec9e6767cb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Igor=20Mi=C5=A1i=C4=87?= Date: Fri, 17 Feb 2023 11:50:05 +0100 Subject: [PATCH] drivers/mtd/ramtron: change nsectors size to uint32 --- drivers/mtd/ramtron.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/ramtron.c b/drivers/mtd/ramtron.c index 3ce90661e2..b3268f4fb9 100644 --- a/drivers/mtd/ramtron.c +++ b/drivers/mtd/ramtron.c @@ -143,7 +143,7 @@ struct ramtron_dev_s FAR struct spi_dev_s *dev; /* Saved SPI interface instance */ uint8_t sectorshift; uint8_t pageshift; - uint16_t nsectors; + uint32_t nsectors; uint32_t npages; uint32_t speed; /* Overridable via ioctl */ FAR const struct ramtron_parts_s *part; /* Part instance */