From: Tudor Ambarus Date: Mon, 25 Jul 2022 09:25:00 +0000 (+0300) Subject: mtd: spi-nor: core: Shrink the storage size of the flash_info's addr_nbytes X-Git-Tag: v6.1-rc5~689^2~1^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa5d980a144cd0bf717eb16609c29ff276f8bd47;p=platform%2Fkernel%2Flinux-starfive.git mtd: spi-nor: core: Shrink the storage size of the flash_info's addr_nbytes The maximum number of address bytes in SPI NOR is 4. Shrink the storage size of the flash_info's addr_nbytes. Signed-off-by: Tudor Ambarus Reviewed-by: Michael Walle Reviewed-by: Pratyush Yadav Link: https://lore.kernel.org/r/20220725092505.446315-3-tudor.ambarus@microchip.com --- diff --git a/drivers/mtd/spi-nor/core.h b/drivers/mtd/spi-nor/core.h index 14921a5..19a692e 100644 --- a/drivers/mtd/spi-nor/core.h +++ b/drivers/mtd/spi-nor/core.h @@ -487,7 +487,7 @@ struct flash_info { unsigned sector_size; u16 n_sectors; u16 page_size; - u16 addr_nbytes; + u8 addr_nbytes; bool parse_sfdp; u16 flags;