dm: platform_data: spi: s/pl022_spi.h/spi_pl022.h
authorJagan Teki <jagan@amarulasolutions.com>
Thu, 22 Nov 2018 06:24:08 +0000 (11:54 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Tue, 27 Nov 2018 15:36:46 +0000 (21:06 +0530)
Rename platform_data include file as spi_pl022.h from pl022_spi.h,
this is generic notation used for spi platdata include files.

Acked-by: Quentin Schulz <quentin.schulz@bootlin.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/pl022_spi.c
include/dm/platform_data/pl022_spi.h [deleted file]
include/dm/platform_data/spi_pl022.h [new file with mode: 0644]

index f2e5367..32bb8c8 100644 (file)
@@ -12,7 +12,7 @@
 #include <clk.h>
 #include <common.h>
 #include <dm.h>
-#include <dm/platform_data/pl022_spi.h>
+#include <dm/platform_data/spi_pl022.h>
 #include <linux/io.h>
 #include <spi.h>
 
diff --git a/include/dm/platform_data/pl022_spi.h b/include/dm/platform_data/pl022_spi.h
deleted file mode 100644 (file)
index df88701..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_DEVICE for pl022 SPI devices or to use
- * in ofdata_to_platdata.
- */
-
-#ifndef __PL022_SPI_H__
-#define __PL022_SPI_H__
-
-#include <fdtdec.h>
-
-struct pl022_spi_pdata {
-       fdt_addr_t addr;
-       fdt_size_t size;
-       unsigned int freq;
-};
-
-#endif
diff --git a/include/dm/platform_data/spi_pl022.h b/include/dm/platform_data/spi_pl022.h
new file mode 100644 (file)
index 0000000..63a58ee
--- /dev/null
@@ -0,0 +1,21 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * (C) Copyright 2018
+ * Quentin Schulz, Bootlin, quentin.schulz@bootlin.com
+ *
+ * Structure for use with U_BOOT_DEVICE for pl022 SPI devices or to use
+ * in ofdata_to_platdata.
+ */
+
+#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 */