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 committed Aug 9, 2023
1 parent f028734 commit 96c199c
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 96c199c

Please sign in to comment.