diff mbox series

[3/4] spi: pl022: Remove platform data header

Message ID 20230428123850.6444-3-stefan.herbrechtsmeier-oss@weidmueller.com
State Accepted
Commit 03612861a722ebd478c63bf055783fe8c3fcb3bd
Delegated to: Jagannadha Sutradharudu Teki
Headers show
Series [1/4] spi: pl022: Align compatible property with device tree binding | expand

Commit Message

Stefan Herbrechtsmeier April 28, 2023, 12:38 p.m. UTC
From: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>

Remove the platform data header because its content is only used by the
driver.

Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
---

 drivers/spi/pl022_spi.c              |  8 +++++++-
 include/dm/platform_data/spi_pl022.h | 21 ---------------------
 2 files changed, 7 insertions(+), 22 deletions(-)
 delete mode 100644 include/dm/platform_data/spi_pl022.h

Comments

Jagan Teki June 2, 2023, 5:38 a.m. UTC | #1
On Fri, Apr 28, 2023 at 6:09 PM Stefan Herbrechtsmeier
<stefan.herbrechtsmeier-oss@weidmueller.com> wrote:
>
> From: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
>
> 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>
diff mbox series

Patch

diff --git a/drivers/spi/pl022_spi.c b/drivers/spi/pl022_spi.c
index a6a0c552aa..9e4caac16f 100644
--- a/drivers/spi/pl022_spi.c
+++ b/drivers/spi/pl022_spi.c
@@ -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>
@@ -66,6 +66,12 @@ 
 #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
index 7f74b3cbc5..0000000000
--- a/include/dm/platform_data/spi_pl022.h
+++ /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 */