Commit efe27f57 authored by Daniel Leung's avatar Daniel Leung Committed by Fabio Baltieri
Browse files

flash: rename shadow variables



Renames shadow variables found by -Wshadow.

Signed-off-by: default avatarDaniel Leung <daniel.leung@intel.com>
parent 565c5d47
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -2205,11 +2205,11 @@ static int flash_stm32_ospi_init(const struct device *dev)
			union {
				uint32_t dw[MIN(php->len_dw, 20)];
				struct jesd216_bfp bfp;
			} u;
			const struct jesd216_bfp *bfp = &u.bfp;
			} u2;
			const struct jesd216_bfp *bfp = &u2.bfp;

			ret = ospi_read_sfdp(dev, jesd216_param_addr(php),
					     (uint8_t *)u.dw, sizeof(u.dw));
					     (uint8_t *)u2.dw, sizeof(u2.dw));
			if (ret == 0) {
				ret = spi_nor_process_bfp(dev, php, bfp);
			}
+3 −3
Original line number Diff line number Diff line
@@ -1311,11 +1311,11 @@ static int flash_stm32_qspi_init(const struct device *dev)
			union {
				uint32_t dw[MIN(php->len_dw, 20)];
				struct jesd216_bfp bfp;
			} u;
			const struct jesd216_bfp *bfp = &u.bfp;
			} u2;
			const struct jesd216_bfp *bfp = &u2.bfp;

			ret = qspi_read_sfdp(dev, jesd216_param_addr(php),
					     (uint8_t *)u.dw, sizeof(u.dw));
					     (uint8_t *)u2.dw, sizeof(u2.dw));
			if (ret == 0) {
				ret = spi_nor_process_bfp(dev, php, bfp);
			}