]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spi: pl022: Remove platform data header
authorStefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Fri, 28 Apr 2023 12:38:49 +0000 (14:38 +0200)
committerJagan Teki <jagan@edgeble.ai>
Thu, 13 Jul 2023 08:29:57 +0000 (13:59 +0530)
Remove the platform data header because its content is only used by the
driver.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Reviewed-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/pl022_spi.c
include/dm/platform_data/spi_pl022.h [deleted file]

index a6a0c552aa0d1c8de3eae846e0d46945cdface8a..9e4caac16faa843863262956b461ec1ec5568ec7 100644 (file)
@@ -12,7 +12,7 @@
 #include <clk.h>
 #include <common.h>
 #include <dm.h>
-#include <dm/platform_data/spi_pl022.h>
+#include <fdtdec.h>
 #include <linux/io.h>
 #include <asm/global_data.h>
 #include <spi.h>
 #define SSP_SR_MASK_RFF                (0x1 << 3) /* Receive FIFO full */
 #define SSP_SR_MASK_BSY                (0x1 << 4) /* Busy Flag */
 
+struct pl022_spi_pdata {
+       fdt_addr_t addr;
+       fdt_size_t size;
+       unsigned int freq;
+};
+
 struct pl022_spi_slave {
        void *base;
        unsigned int freq;
diff --git a/include/dm/platform_data/spi_pl022.h b/include/dm/platform_data/spi_pl022.h
deleted file mode 100644 (file)
index 7f74b3c..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * (C) Copyright 2018
- * Quentin Schulz, Bootlin, quentin.schulz@bootlin.com
- *
- * Structure for use with U_BOOT_DRVINFO for pl022 SPI devices or to use
- * in of_to_plat.
- */
-
-#ifndef __spi_pl022_h
-#define __spi_pl022_h
-
-#include <fdtdec.h>
-
-struct pl022_spi_pdata {
-       fdt_addr_t addr;
-       fdt_size_t size;
-       unsigned int freq;
-};
-
-#endif /* __spi_pl022_h */