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 <morsisko@gmail.com>
This commit is contained in:
Michal Morsisko 2024-09-01 22:24:57 +02:00 committed by Benjamin Cabé
parent b76b2bbc8c
commit c4923b6be0

View file

@ -37,7 +37,7 @@ static int spi_bitbang_configure(const struct spi_bitbang_config *info,
return -ENOTSUP; return -ENOTSUP;
} }
if (config->operation & (SPI_LINES_DUAL | SPI_LINES_QUAD)) { if (config->operation & (SPI_LINES_DUAL | SPI_LINES_QUAD | SPI_LINES_OCTAL)) {
LOG_ERR("Unsupported configuration"); LOG_ERR("Unsupported configuration");
return -ENOTSUP; return -ENOTSUP;
} }