flash: rename shadow variables

Renames shadow variables found by -Wshadow.

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2023-08-04 10:58:25 -07:00 committed by Fabio Baltieri
commit efe27f577a
2 changed files with 6 additions and 6 deletions

View file

@ -2205,11 +2205,11 @@ static int flash_stm32_ospi_init(const struct device *dev)
union { union {
uint32_t dw[MIN(php->len_dw, 20)]; uint32_t dw[MIN(php->len_dw, 20)];
struct jesd216_bfp bfp; struct jesd216_bfp bfp;
} u; } u2;
const struct jesd216_bfp *bfp = &u.bfp; const struct jesd216_bfp *bfp = &u2.bfp;
ret = ospi_read_sfdp(dev, jesd216_param_addr(php), 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) { if (ret == 0) {
ret = spi_nor_process_bfp(dev, php, bfp); ret = spi_nor_process_bfp(dev, php, bfp);
} }

View file

@ -1311,11 +1311,11 @@ static int flash_stm32_qspi_init(const struct device *dev)
union { union {
uint32_t dw[MIN(php->len_dw, 20)]; uint32_t dw[MIN(php->len_dw, 20)];
struct jesd216_bfp bfp; struct jesd216_bfp bfp;
} u; } u2;
const struct jesd216_bfp *bfp = &u.bfp; const struct jesd216_bfp *bfp = &u2.bfp;
ret = qspi_read_sfdp(dev, jesd216_param_addr(php), 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) { if (ret == 0) {
ret = spi_nor_process_bfp(dev, php, bfp); ret = spi_nor_process_bfp(dev, php, bfp);
} }