]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
memory: move jedec_ddr.h from include/memory to drivers/memory/
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 3 Jun 2019 08:12:33 +0000 (17:12 +0900)
committerOlof Johansson <olof@lixom.net>
Mon, 17 Jun 2019 11:45:21 +0000 (04:45 -0700)
Now that jedec_ddr_data.c was moved from lib/ to drivers/memory/,
<memory/jedec_ddr.h> is included only from drivers/memory/.

Make it a local header of drivers/memory/.

The directory include/memory is now gone.

While I am here, I also changed #include <linux/module.h> to
<linux/export.h>. Because CONFIG_DDR is bool, jedec_ddr_data.c is
never compiled as a module.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/memory/emif.c
drivers/memory/jedec_ddr.h [moved from include/memory/jedec_ddr.h with 97% similarity]
drivers/memory/jedec_ddr_data.c
drivers/memory/of_memory.c

index 2f214440008c393f73379de52b293e765426a884..32cad7540d78b2411793c53f2d1d5ed594232453 100644 (file)
@@ -26,8 +26,9 @@
 #include <linux/list.h>
 #include <linux/spinlock.h>
 #include <linux/pm.h>
-#include <memory/jedec_ddr.h>
+
 #include "emif.h"
+#include "jedec_ddr.h"
 #include "of_memory.h"
 
 /**
similarity index 97%
rename from include/memory/jedec_ddr.h
rename to drivers/memory/jedec_ddr.h
index ddad0f870e5d38375f9ba550cb05d37f42142459..a2094a9a588efb9bed66a1ed65c66590c03b42de 100644 (file)
@@ -9,8 +9,8 @@
  * it under the terms of the GNU General Public License version 2 as
  * published by the Free Software Foundation.
  */
-#ifndef __LINUX_JEDEC_DDR_H
-#define __LINUX_JEDEC_DDR_H
+#ifndef __JEDEC_DDR_H
+#define __JEDEC_DDR_H
 
 #include <linux/types.h>
 
@@ -172,4 +172,4 @@ extern const struct lpddr2_timings
        lpddr2_jedec_timings[NUM_DDR_TIMING_TABLE_ENTRIES];
 extern const struct lpddr2_min_tck lpddr2_jedec_min_tck;
 
-#endif /* __LINUX_JEDEC_DDR_H */
+#endif /* __JEDEC_DDR_H */
index 6d2cbf1d567f1e899d83a54f461982af9acb5c15..1f9ca0f23407aa534060f8aeb65821fee21aacfd 100644 (file)
@@ -10,8 +10,9 @@
  * published by the Free Software Foundation.
  */
 
-#include <memory/jedec_ddr.h>
-#include <linux/module.h>
+#include <linux/export.h>
+
+#include "jedec_ddr.h"
 
 /* LPDDR2 addressing details from JESD209-2 section 2.4 */
 const struct lpddr2_addressing
index 12a61f55864444d8eadc3c329496bccacb61e9c9..46539b27a3fb9291a920cdfa81d558bf1857a0ba 100644 (file)
@@ -10,8 +10,9 @@
 #include <linux/list.h>
 #include <linux/of.h>
 #include <linux/gfp.h>
-#include <memory/jedec_ddr.h>
 #include <linux/export.h>
+
+#include "jedec_ddr.h"
 #include "of_memory.h"
 
 /**