spi: Convert to SPI_CONTROLLER_HALF_DUPLEX
Convert the users under SPI subsystem to SPI_CONTROLLER_HALF_DUPLEX. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20230710154932.68377-15-andriy.shevchenko@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Родитель
82238d2cbd
Коммит
7a2b552c8e
|
@ -404,7 +404,7 @@ static int amd_spi_probe(struct platform_device *pdev)
|
|||
master->bus_num = 0;
|
||||
master->num_chipselect = 4;
|
||||
master->mode_bits = 0;
|
||||
master->flags = SPI_MASTER_HALF_DUPLEX;
|
||||
master->flags = SPI_CONTROLLER_HALF_DUPLEX;
|
||||
master->max_speed_hz = AMD_SPI_MAX_HZ;
|
||||
master->min_speed_hz = AMD_SPI_MIN_HZ;
|
||||
master->setup = amd_spi_master_setup;
|
||||
|
|
|
@ -64,7 +64,7 @@ static int thunderx_spi_probe(struct pci_dev *pdev,
|
|||
p->sys_freq = SYS_FREQ_DEFAULT;
|
||||
dev_info(dev, "Set system clock to %u\n", p->sys_freq);
|
||||
|
||||
master->flags = SPI_MASTER_HALF_DUPLEX;
|
||||
master->flags = SPI_CONTROLLER_HALF_DUPLEX;
|
||||
master->num_chipselect = 4;
|
||||
master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_CS_HIGH |
|
||||
SPI_LSB_FIRST | SPI_3WIRE;
|
||||
|
|
|
@ -401,7 +401,7 @@ static int falcon_sflash_probe(struct platform_device *pdev)
|
|||
priv->master = master;
|
||||
|
||||
master->mode_bits = SPI_MODE_3;
|
||||
master->flags = SPI_MASTER_HALF_DUPLEX;
|
||||
master->flags = SPI_CONTROLLER_HALF_DUPLEX;
|
||||
master->setup = falcon_sflash_setup;
|
||||
master->transfer_one_message = falcon_sflash_xfer_one;
|
||||
master->dev.of_node = pdev->dev.of_node;
|
||||
|
|
|
@ -191,7 +191,7 @@ spi_lp8841_rtc_probe(struct platform_device *pdev)
|
|||
return -ENOMEM;
|
||||
platform_set_drvdata(pdev, master);
|
||||
|
||||
master->flags = SPI_MASTER_HALF_DUPLEX;
|
||||
master->flags = SPI_CONTROLLER_HALF_DUPLEX;
|
||||
master->mode_bits = SPI_CS_HIGH | SPI_3WIRE | SPI_LSB_FIRST;
|
||||
|
||||
master->bus_num = pdev->id;
|
||||
|
|
|
@ -572,7 +572,7 @@ static int mxs_spi_probe(struct platform_device *pdev)
|
|||
master->mode_bits = SPI_CPOL | SPI_CPHA;
|
||||
master->num_chipselect = 3;
|
||||
master->dev.of_node = np;
|
||||
master->flags = SPI_MASTER_HALF_DUPLEX;
|
||||
master->flags = SPI_CONTROLLER_HALF_DUPLEX;
|
||||
master->auto_runtime_pm = true;
|
||||
|
||||
spi = spi_master_get_devdata(master);
|
||||
|
|
|
@ -486,7 +486,7 @@ static int uwire_probe(struct platform_device *pdev)
|
|||
/* the spi->mode bits understood by this driver: */
|
||||
master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH;
|
||||
master->bits_per_word_mask = SPI_BPW_RANGE_MASK(1, 16);
|
||||
master->flags = SPI_MASTER_HALF_DUPLEX;
|
||||
master->flags = SPI_CONTROLLER_HALF_DUPLEX;
|
||||
|
||||
master->bus_num = 2; /* "official" */
|
||||
master->num_chipselect = 4;
|
||||
|
|
|
@ -648,7 +648,7 @@ static int pic32_sqi_probe(struct platform_device *pdev)
|
|||
master->dev.of_node = pdev->dev.of_node;
|
||||
master->mode_bits = SPI_MODE_3 | SPI_MODE_0 | SPI_TX_DUAL |
|
||||
SPI_RX_DUAL | SPI_TX_QUAD | SPI_RX_QUAD;
|
||||
master->flags = SPI_MASTER_HALF_DUPLEX;
|
||||
master->flags = SPI_CONTROLLER_HALF_DUPLEX;
|
||||
master->can_dma = pic32_sqi_can_dma;
|
||||
master->bits_per_word_mask = SPI_BPW_RANGE_MASK(8, 32);
|
||||
master->transfer_one_message = pic32_sqi_one_message;
|
||||
|
|
|
@ -724,7 +724,7 @@ static int qcom_qspi_probe(struct platform_device *pdev)
|
|||
master->mode_bits = SPI_MODE_0 |
|
||||
SPI_TX_DUAL | SPI_RX_DUAL |
|
||||
SPI_TX_QUAD | SPI_RX_QUAD;
|
||||
master->flags = SPI_MASTER_HALF_DUPLEX;
|
||||
master->flags = SPI_CONTROLLER_HALF_DUPLEX;
|
||||
master->prepare_message = qcom_qspi_prepare_message;
|
||||
master->transfer_one = qcom_qspi_transfer_one;
|
||||
master->handle_err = qcom_qspi_handle_err;
|
||||
|
|
|
@ -565,7 +565,7 @@ static int rockchip_sfc_probe(struct platform_device *pdev)
|
|||
if (!master)
|
||||
return -ENOMEM;
|
||||
|
||||
master->flags = SPI_MASTER_HALF_DUPLEX;
|
||||
master->flags = SPI_CONTROLLER_HALF_DUPLEX;
|
||||
master->mem_ops = &rockchip_sfc_mem_ops;
|
||||
master->dev.of_node = pdev->dev.of_node;
|
||||
master->mode_bits = SPI_TX_QUAD | SPI_TX_DUAL | SPI_RX_QUAD | SPI_RX_DUAL;
|
||||
|
|
|
@ -580,7 +580,7 @@ static int sprd_adi_probe(struct platform_device *pdev)
|
|||
ctlr->dev.of_node = pdev->dev.of_node;
|
||||
ctlr->bus_num = pdev->id;
|
||||
ctlr->num_chipselect = num_chipselect;
|
||||
ctlr->flags = SPI_MASTER_HALF_DUPLEX;
|
||||
ctlr->flags = SPI_CONTROLLER_HALF_DUPLEX;
|
||||
ctlr->bits_per_word_mask = 0;
|
||||
ctlr->transfer_one = sprd_adi_transfer_one;
|
||||
|
||||
|
|
|
@ -770,7 +770,7 @@ static int ti_qspi_probe(struct platform_device *pdev)
|
|||
|
||||
master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_RX_DUAL | SPI_RX_QUAD;
|
||||
|
||||
master->flags = SPI_MASTER_HALF_DUPLEX;
|
||||
master->flags = SPI_CONTROLLER_HALF_DUPLEX;
|
||||
master->setup = ti_qspi_setup;
|
||||
master->auto_runtime_pm = true;
|
||||
master->transfer_one_message = ti_qspi_start_transfer_one;
|
||||
|
|
|
@ -218,7 +218,7 @@ static int spi_xcomm_probe(struct i2c_client *i2c)
|
|||
master->num_chipselect = 16;
|
||||
master->mode_bits = SPI_CPHA | SPI_CPOL | SPI_3WIRE;
|
||||
master->bits_per_word_mask = SPI_BPW_MASK(8);
|
||||
master->flags = SPI_MASTER_HALF_DUPLEX;
|
||||
master->flags = SPI_CONTROLLER_HALF_DUPLEX;
|
||||
master->transfer_one_message = spi_xcomm_transfer_one;
|
||||
master->dev.of_node = i2c->dev.of_node;
|
||||
i2c_set_clientdata(i2c, master);
|
||||
|
|
Загрузка…
Ссылка в новой задаче