Skip to content

Commit 03eb479

Browse files
haiyuewakartben
authored andcommitted
drivers: spi: stm32: correct the operation flag type
The commit 2c3165d ("drivers: spi: add opaque type to encode SPI operation flags") introduces new type for operation flag, since it is 16/32-bit depending on CONFIG_SPI_EXTENDED_MODES. Use the new type for safe, if the function 'spi_stm32_shift_frames' may use extended operation flag later. Signed-off-by: Haiyue Wang <[email protected]>
1 parent f1d4d53 commit 03eb479

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi_ll_stm32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ static void spi_stm32_shift_s(SPI_TypeDef *spi, struct spi_stm32_data *data)
462462
static int spi_stm32_shift_frames(const struct spi_stm32_config *cfg,
463463
struct spi_stm32_data *data)
464464
{
465-
uint16_t operation = data->ctx.config->operation;
465+
spi_operation_t operation = data->ctx.config->operation;
466466

467467
if (SPI_OP_MODE_GET(operation) == SPI_OP_MODE_MASTER) {
468468
spi_stm32_shift_m(cfg, data);

0 commit comments

Comments
 (0)