spi: pxa2xx: Move contents of linux/spi/pxa2xx_spi.h to a local one
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 17 Apr 2024 10:54:30 +0000 (13:54 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 3 May 2024 02:11:33 +0000 (11:11 +0900)
There is no user of the linux/spi/pxa2xx_spi.h. Move its contents
to the drivers/spi/spi-pxa2xx.h.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20240417110334.2671228-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx-dma.c
drivers/spi/spi-pxa2xx-pci.c
drivers/spi/spi-pxa2xx.c
drivers/spi/spi-pxa2xx.h
include/linux/spi/pxa2xx_spi.h [deleted file]

index be563f0dd03a2abe2b28761b4f4435de6cd61ded..26416ced65056d2c671d9d66220e12edac8ba4e5 100644 (file)
@@ -12,7 +12,6 @@
 #include <linux/scatterlist.h>
 #include <linux/sizes.h>
 
-#include <linux/spi/pxa2xx_spi.h>
 #include <linux/spi/spi.h>
 
 #include "spi-pxa2xx.h"
index 861b21c6350432029719714f82780727db386dd2..e11a613bc3409f9d319bbb6400be824a4cc720e9 100644 (file)
 #include <linux/pci.h>
 #include <linux/platform_device.h>
 
-#include <linux/spi/pxa2xx_spi.h>
-
 #include <linux/dmaengine.h>
 #include <linux/platform_data/dma-dw.h>
 
+#include "spi-pxa2xx.h"
+
 #define PCI_DEVICE_ID_INTEL_QUARK_X1000                0x0935
 #define PCI_DEVICE_ID_INTEL_BYT                        0x0f0e
 #define PCI_DEVICE_ID_INTEL_MRFLD              0x1194
index ab6fd55237cd1dbf52c3ed70aa8bdc7b688b0894..82633682b58104b514d113ccf2bbaf8e6a4be385 100644 (file)
@@ -24,7 +24,6 @@
 #include <linux/property.h>
 #include <linux/slab.h>
 
-#include <linux/spi/pxa2xx_spi.h>
 #include <linux/spi/spi.h>
 
 #include "spi-pxa2xx.h"
index 45cdbbc71c4b441b9be5ea36749ab06b3262ade7..08296729ea80236a9565788cd64d626482b52235 100644 (file)
@@ -7,6 +7,7 @@
 #ifndef SPI_PXA2XX_H
 #define SPI_PXA2XX_H
 
+#include <linux/dmaengine.h>
 #include <linux/interrupt.h>
 #include <linux/io.h>
 #include <linux/types.h>
 #include <linux/pxa2xx_ssp.h>
 
 struct gpio_desc;
-struct pxa2xx_spi_controller;
+
+/*
+ * The platform data for SSP controller devices
+ * (resides in device.platform_data).
+ */
+struct pxa2xx_spi_controller {
+       u8 num_chipselect;
+       u8 enable_dma;
+       u8 dma_burst_size;
+       bool is_target;
+
+       /* DMA engine specific config */
+       dma_filter_fn dma_filter;
+       void *tx_param;
+       void *rx_param;
+
+       /* For non-PXA arches */
+       struct ssp_device ssp;
+};
+
+/*
+ * The controller specific data for SPI target devices
+ * (resides in spi_board_info.controller_data),
+ * copied to spi_device.platform_data ... mostly for
+ * DMA tuning.
+ */
+struct pxa2xx_spi_chip {
+       u8 tx_threshold;
+       u8 tx_hi_threshold;
+       u8 rx_threshold;
+       u8 dma_burst_size;
+       u32 timeout;
+};
+
 struct spi_controller;
 struct spi_device;
 struct spi_transfer;
diff --git a/include/linux/spi/pxa2xx_spi.h b/include/linux/spi/pxa2xx_spi.h
deleted file mode 100644 (file)
index e5a4a04..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-or-later */
-/*
- * Copyright (C) 2005 Stephen Street / StreetFire Sound Labs
- */
-#ifndef __LINUX_SPI_PXA2XX_SPI_H
-#define __LINUX_SPI_PXA2XX_SPI_H
-
-#include <linux/dmaengine.h>
-#include <linux/types.h>
-
-#include <linux/pxa2xx_ssp.h>
-
-struct dma_chan;
-
-/*
- * The platform data for SSP controller devices
- * (resides in device.platform_data).
- */
-struct pxa2xx_spi_controller {
-       u8 num_chipselect;
-       u8 enable_dma;
-       u8 dma_burst_size;
-       bool is_target;
-
-       /* DMA engine specific config */
-       dma_filter_fn dma_filter;
-       void *tx_param;
-       void *rx_param;
-
-       /* For non-PXA arches */
-       struct ssp_device ssp;
-};
-
-/*
- * The controller specific data for SPI target devices
- * (resides in spi_board_info.controller_data),
- * copied to spi_device.platform_data ... mostly for
- * DMA tuning.
- */
-struct pxa2xx_spi_chip {
-       u8 tx_threshold;
-       u8 tx_hi_threshold;
-       u8 rx_threshold;
-       u8 dma_burst_size;
-       u32 timeout;
-};
-
-#endif /* __LINUX_SPI_PXA2XX_SPI_H */