Skip to content

Commit

Permalink
drivers: spip: fix spip_npcm4xx_configure function bug
Browse files Browse the repository at this point in the history
fix spip_npcm4xx_configure function bug.

Signed-off-by: TY Su <[email protected]>
  • Loading branch information
TYNuv authored and maxdog988 committed Aug 9, 2023
1 parent f028734 commit bfefd48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi_npcm4xx_spip.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static int spip_npcm4xx_configure(const struct device *dev,
struct npcm4xx_spip_data *data = dev->data;
struct spip_reg *const spip_regs = (struct spip_reg *) cfg->base;
uint32_t u32Div;
int ret;
int ret = 0;

if (SPI_WORD_SIZE_GET(config->operation) != 8) {
LOG_ERR("Word sizes other than 8 bits are not supported");
Expand Down

0 comments on commit bfefd48

Please sign in to comment.