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:
parent
b76b2bbc8c
commit
c4923b6be0
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ static int spi_bitbang_configure(const struct spi_bitbang_config *info,
|
|||
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");
|
||||
return -ENOTSUP;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue