Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

spi: rspi: Get rid of unused struct rspi_plat_data

No in-kernel users of struct rspi_plat_data. If required,
the software nodes should be used for such users. For now
just get rid of it.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://msgid.link/r/20240325142118.3210915-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Andy Shevchenko and committed by
Mark Brown
bdeef5dc 10402419

+1 -29
+1 -11
drivers/spi/spi-rspi.c
··· 24 24 #include <linux/reset.h> 25 25 #include <linux/sh_dma.h> 26 26 #include <linux/spi/spi.h> 27 - #include <linux/spi/rspi.h> 28 27 #include <linux/spinlock.h> 29 28 30 29 #define RSPI_SPCR 0x00 /* Control Register */ ··· 1130 1131 static int rspi_request_dma(struct device *dev, struct spi_controller *ctlr, 1131 1132 const struct resource *res) 1132 1133 { 1133 - const struct rspi_plat_data *rspi_pd = dev_get_platdata(dev); 1134 1134 unsigned int dma_tx_id, dma_rx_id; 1135 1135 1136 1136 if (dev->of_node) { 1137 1137 /* In the OF case we will get the slave IDs from the DT */ 1138 1138 dma_tx_id = 0; 1139 1139 dma_rx_id = 0; 1140 - } else if (rspi_pd && rspi_pd->dma_tx_id && rspi_pd->dma_rx_id) { 1141 - dma_tx_id = rspi_pd->dma_tx_id; 1142 - dma_rx_id = rspi_pd->dma_rx_id; 1143 1140 } else { 1144 1141 /* The driver assumes no error. */ 1145 1142 return 0; ··· 1285 1290 struct spi_controller *ctlr; 1286 1291 struct rspi_data *rspi; 1287 1292 int ret; 1288 - const struct rspi_plat_data *rspi_pd; 1289 1293 const struct spi_ops *ops; 1290 1294 unsigned long clksrc; 1291 1295 ··· 1299 1305 goto error1; 1300 1306 } else { 1301 1307 ops = (struct spi_ops *)pdev->id_entry->driver_data; 1302 - rspi_pd = dev_get_platdata(&pdev->dev); 1303 - if (rspi_pd && rspi_pd->num_chipselect) 1304 - ctlr->num_chipselect = rspi_pd->num_chipselect; 1305 - else 1306 - ctlr->num_chipselect = 2; /* default */ 1308 + ctlr->num_chipselect = 2; /* default */ 1307 1309 } 1308 1310 1309 1311 rspi = spi_controller_get_devdata(ctlr);
-18
include/linux/spi/rspi.h
··· 1 - /* SPDX-License-Identifier: GPL-2.0-only */ 2 - /* 3 - * Renesas SPI driver 4 - * 5 - * Copyright (C) 2012 Renesas Solutions Corp. 6 - */ 7 - 8 - #ifndef __LINUX_SPI_RENESAS_SPI_H__ 9 - #define __LINUX_SPI_RENESAS_SPI_H__ 10 - 11 - struct rspi_plat_data { 12 - unsigned int dma_tx_id; 13 - unsigned int dma_rx_id; 14 - 15 - u16 num_chipselect; 16 - }; 17 - 18 - #endif