Skip to content

Commit c4923b6

Browse files
morsiskokartben
authored andcommitted
drivers: spi_bitbang: Make SPI_LINES_OCTAL explicitly unsupported flag
Prevent the driver from perfroming transfer when SPI_LINES_OCTAL flag is specified, as this driver supports only SPI_LINES_DUAL for now. Signed-off-by: Michal Morsisko <[email protected]>
1 parent b76b2bb commit c4923b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi_bitbang.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ static int spi_bitbang_configure(const struct spi_bitbang_config *info,
3737
return -ENOTSUP;
3838
}
3939

40-
if (config->operation & (SPI_LINES_DUAL | SPI_LINES_QUAD)) {
40+
if (config->operation & (SPI_LINES_DUAL | SPI_LINES_QUAD | SPI_LINES_OCTAL)) {
4141
LOG_ERR("Unsupported configuration");
4242
return -ENOTSUP;
4343
}

0 commit comments

Comments
 (0)