Skip to content

Commit 90366cd

Browse files
andy-shevbroonie
authored andcommitted
spi: Get rid of old SPI_MASTER_MUST_TX & SPI_MASTER_MUST_RX
Convert the users from SPI_MASTER_MUST_TX and/or SPI_MASTER_MUST_RX to SPI_CONTROLLER_MUST_TX and/or SPI_CONTROLLER_MUST_RX respectively and kill the not used anymore definitions. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20230710154932.68377-13-andriy.shevchenko@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent c397f09 commit 90366cd

File tree

12 files changed

+11
-13
lines changed

12 files changed

+11
-13
lines changed

drivers/spi/spi-at91-usart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ static int at91_usart_spi_probe(struct platform_device *pdev)
527527
controller->dev.of_node = pdev->dev.parent->of_node;
528528
controller->bits_per_word_mask = SPI_BPW_MASK(8);
529529
controller->setup = at91_usart_spi_setup;
530-
controller->flags = SPI_MASTER_MUST_RX | SPI_MASTER_MUST_TX;
530+
controller->flags = SPI_CONTROLLER_MUST_RX | SPI_CONTROLLER_MUST_TX;
531531
controller->transfer_one = at91_usart_spi_transfer_one;
532532
controller->prepare_message = at91_usart_spi_prepare_message;
533533
controller->unprepare_message = at91_usart_spi_unprepare_message;

drivers/spi/spi-atmel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,7 @@ static int atmel_spi_probe(struct platform_device *pdev)
14751475
host->bus_num = pdev->id;
14761476
host->num_chipselect = 4;
14771477
host->setup = atmel_spi_setup;
1478-
host->flags = (SPI_MASTER_MUST_RX | SPI_MASTER_MUST_TX |
1478+
host->flags = (SPI_CONTROLLER_MUST_RX | SPI_CONTROLLER_MUST_TX |
14791479
SPI_MASTER_GPIO_SS);
14801480
host->transfer_one = atmel_spi_one_transfer;
14811481
host->set_cs = atmel_spi_set_cs;

drivers/spi/spi-davinci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ static int davinci_spi_probe(struct platform_device *pdev)
939939
master->bus_num = pdev->id;
940940
master->num_chipselect = pdata->num_chipselect;
941941
master->bits_per_word_mask = SPI_BPW_RANGE_MASK(2, 16);
942-
master->flags = SPI_MASTER_MUST_RX | SPI_MASTER_GPIO_SS;
942+
master->flags = SPI_CONTROLLER_MUST_RX | SPI_MASTER_GPIO_SS;
943943
master->setup = davinci_spi_setup;
944944
master->cleanup = davinci_spi_cleanup;
945945
master->can_dma = davinci_spi_can_dma;

drivers/spi/spi-fsl-lpspi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,7 +856,7 @@ static int fsl_lpspi_probe(struct platform_device *pdev)
856856
controller->prepare_transfer_hardware = lpspi_prepare_xfer_hardware;
857857
controller->unprepare_transfer_hardware = lpspi_unprepare_xfer_hardware;
858858
controller->mode_bits = SPI_CPOL | SPI_CPHA | SPI_CS_HIGH;
859-
controller->flags = SPI_MASTER_MUST_RX | SPI_MASTER_MUST_TX;
859+
controller->flags = SPI_CONTROLLER_MUST_RX | SPI_CONTROLLER_MUST_TX;
860860
controller->dev.of_node = pdev->dev.of_node;
861861
controller->bus_num = pdev->id;
862862
controller->num_chipselect = fsl_lpspi->num_cs;

drivers/spi/spi-meson-spicc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ static int meson_spicc_probe(struct platform_device *pdev)
864864
SPI_BPW_MASK(24) |
865865
SPI_BPW_MASK(16) |
866866
SPI_BPW_MASK(8);
867-
master->flags = (SPI_MASTER_MUST_RX | SPI_MASTER_MUST_TX);
867+
master->flags = (SPI_CONTROLLER_MUST_RX | SPI_CONTROLLER_MUST_TX);
868868
master->min_speed_hz = spicc->data->min_speed_hz;
869869
master->max_speed_hz = spicc->data->max_speed_hz;
870870
master->setup = meson_spicc_setup;

drivers/spi/spi-mt65xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,7 @@ static int mtk_spi_probe(struct platform_device *pdev)
11421142
master->mode_bits |= SPI_CS_HIGH;
11431143

11441144
if (mdata->dev_comp->must_tx)
1145-
master->flags = SPI_MASTER_MUST_TX;
1145+
master->flags = SPI_CONTROLLER_MUST_TX;
11461146
if (mdata->dev_comp->ipm_design)
11471147
master->mode_bits |= SPI_LOOP | SPI_RX_DUAL | SPI_TX_DUAL |
11481148
SPI_RX_QUAD | SPI_TX_QUAD;

drivers/spi/spi-pci1xxxx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ static int pci1xxxx_spi_probe(struct pci_dev *pdev, const struct pci_device_id *
365365
spi_host->bits_per_word_mask = SPI_BPW_MASK(8);
366366
spi_host->max_speed_hz = PCI1XXXX_SPI_MAX_CLOCK_HZ;
367367
spi_host->min_speed_hz = PCI1XXXX_SPI_MIN_CLOCK_HZ;
368-
spi_host->flags = SPI_MASTER_MUST_TX;
368+
spi_host->flags = SPI_CONTROLLER_MUST_TX;
369369
spi_master_set_devdata(spi_host, spi_sub_ptr);
370370
ret = devm_spi_register_master(dev, spi_host);
371371
if (ret)

drivers/spi/spi-pic32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ static int pic32_spi_probe(struct platform_device *pdev)
773773
master->max_speed_hz = clk_get_rate(pic32s->clk);
774774
master->setup = pic32_spi_setup;
775775
master->cleanup = pic32_spi_cleanup;
776-
master->flags = SPI_MASTER_MUST_TX | SPI_MASTER_MUST_RX;
776+
master->flags = SPI_CONTROLLER_MUST_TX | SPI_CONTROLLER_MUST_RX;
777777
master->bits_per_word_mask = SPI_BPW_MASK(8) | SPI_BPW_MASK(16) |
778778
SPI_BPW_MASK(32);
779779
master->transfer_one = pic32_spi_one_transfer;

drivers/spi/spi-rb4xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static int rb4xx_spi_probe(struct platform_device *pdev)
156156
master->num_chipselect = 3;
157157
master->mode_bits = SPI_TX_DUAL;
158158
master->bits_per_word_mask = SPI_BPW_MASK(8);
159-
master->flags = SPI_MASTER_MUST_TX;
159+
master->flags = SPI_CONTROLLER_MUST_TX;
160160
master->transfer_one = rb4xx_transfer_one;
161161
master->set_cs = rb4xx_set_cs;
162162

drivers/spi/spi-slave-mt27xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ static int mtk_spi_slave_probe(struct platform_device *pdev)
414414
mdata->dev_comp = of_id->data;
415415

416416
if (mdata->dev_comp->must_rx)
417-
ctlr->flags = SPI_MASTER_MUST_RX;
417+
ctlr->flags = SPI_CONTROLLER_MUST_RX;
418418

419419
platform_set_drvdata(pdev, ctlr);
420420

0 commit comments

Comments
 (0)