Skip to content

Commit 380dcdd

Browse files
kartbennashif
authored andcommitted
drivers: espi: npcx: fix compilation errors
Fix code that couldn't compile due to typos Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent e936d77 commit 380dcdd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/espi/espi_taf_npcx.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,19 +391,19 @@ static int espi_taf_npcx_flash_read(const struct device *dev, struct espi_saf_pa
391391
} else {
392392
rc = flash_read(npcx_espi_taf_data.low_dev_ptr, addr,
393393
npcx_espi_taf_data.read_buf,
394-
(npcx_espi_taf_data.low_dev_size.low_dev_size - addr));
394+
(npcx_espi_taf_data.low_dev_size - addr));
395395

396396
if (rc) {
397397
LOG_ERR("flash read fail 0x%x", rc);
398398
return -EIO;
399399
}
400400

401-
uint32_t index = low_dev_size - addr;
401+
uint32_t index = npcx_espi_taf_data.low_dev_size - addr;
402402

403403
rc = flash_read(
404404
npcx_espi_taf_data.high_dev_ptr, 0x0,
405405
&npcx_espi_taf_data.read_buf[index],
406-
(addr + len - npcx_espi_taf_data.low_dev_size.low_dev_size));
406+
(addr + len - npcx_espi_taf_data.low_dev_size));
407407
}
408408
#else
409409
rc = flash_read(spi_dev, addr, npcx_espi_taf_data.read_buf, len);

0 commit comments

Comments
 (0)