spi: fix undefined behaviour in SPI_BPW_RANGE_MASK