linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Boris Brezillon <boris.brezillon@bootlin.com>
To: "Ralf Baechle" <ralf@linux-mips.org>,
	linux-mips@linux-mips.org, "Rafał Miłecki" <zajec5@gmail.com>,
	"Boris Brezillon" <boris.brezillon@bootlin.com>,
	"Richard Weinberger" <richard@nod.at>,
	"Miquel Raynal" <miquel.raynal@bootlin.com>,
	linux-mtd@lists.infradead.org
Cc: David Woodhouse <dwmw2@infradead.org>,
	Brian Norris <computersforpeace@gmail.com>,
	Marek Vasut <marek.vasut@gmail.com>,
	linux-wireless@vger.kernel.org
Subject: [PATCH 22/27] MIPS: txx9: Move the ndfc.h header to include/linux/platform_data/txx9
Date: Thu,  5 Jul 2018 11:45:17 +0200	[thread overview]
Message-ID: <20180705094522.12138-23-boris.brezillon@bootlin.com> (raw)
In-Reply-To: <20180705094522.12138-1-boris.brezillon@bootlin.com>

This way we will be able to compile the ndfmc driver when
COMPILE_TEST=y.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
---
 arch/mips/txx9/generic/setup.c                                      | 2 +-
 arch/mips/txx9/generic/setup_tx4938.c                               | 2 +-
 arch/mips/txx9/generic/setup_tx4939.c                               | 2 +-
 drivers/mtd/nand/raw/txx9ndfmc.c                                    | 2 +-
 {arch/mips/include/asm => include/linux/platform_data}/txx9/ndfmc.h | 6 +++---
 5 files changed, 7 insertions(+), 7 deletions(-)
 rename {arch/mips/include/asm => include/linux/platform_data}/txx9/ndfmc.h (91%)

diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c
index 1791a44ee570..aa47932abd28 100644
--- a/arch/mips/txx9/generic/setup.c
+++ b/arch/mips/txx9/generic/setup.c
@@ -20,6 +20,7 @@
 #include <linux/err.h>
 #include <linux/gpio/driver.h>
 #include <linux/platform_device.h>
+#include <linux/platform_data/txx9/ndfmc.h>
 #include <linux/serial_core.h>
 #include <linux/mtd/physmap.h>
 #include <linux/leds.h>
@@ -35,7 +36,6 @@
 #include <asm/txx9/generic.h>
 #include <asm/txx9/pci.h>
 #include <asm/txx9tmr.h>
-#include <asm/txx9/ndfmc.h>
 #include <asm/txx9/dmac.h>
 #ifdef CONFIG_CPU_TX49XX
 #include <asm/txx9/tx4938.h>
diff --git a/arch/mips/txx9/generic/setup_tx4938.c b/arch/mips/txx9/generic/setup_tx4938.c
index 85d1795652da..17395d5d15ca 100644
--- a/arch/mips/txx9/generic/setup_tx4938.c
+++ b/arch/mips/txx9/generic/setup_tx4938.c
@@ -17,13 +17,13 @@
 #include <linux/ptrace.h>
 #include <linux/mtd/physmap.h>
 #include <linux/platform_device.h>
+#include <linux/platform_data/txx9/ndfmc.h>
 #include <asm/reboot.h>
 #include <asm/traps.h>
 #include <asm/txx9irq.h>
 #include <asm/txx9tmr.h>
 #include <asm/txx9pio.h>
 #include <asm/txx9/generic.h>
-#include <asm/txx9/ndfmc.h>
 #include <asm/txx9/dmac.h>
 #include <asm/txx9/tx4938.h>
 
diff --git a/arch/mips/txx9/generic/setup_tx4939.c b/arch/mips/txx9/generic/setup_tx4939.c
index 274928987a21..360c388f4c82 100644
--- a/arch/mips/txx9/generic/setup_tx4939.c
+++ b/arch/mips/txx9/generic/setup_tx4939.c
@@ -21,13 +21,13 @@
 #include <linux/ptrace.h>
 #include <linux/mtd/physmap.h>
 #include <linux/platform_device.h>
+#include <linux/platform_data/txx9/ndfmc.h>
 #include <asm/bootinfo.h>
 #include <asm/reboot.h>
 #include <asm/traps.h>
 #include <asm/txx9irq.h>
 #include <asm/txx9tmr.h>
 #include <asm/txx9/generic.h>
-#include <asm/txx9/ndfmc.h>
 #include <asm/txx9/dmac.h>
 #include <asm/txx9/tx4939.h>
 
diff --git a/drivers/mtd/nand/raw/txx9ndfmc.c b/drivers/mtd/nand/raw/txx9ndfmc.c
index b567d212fe7d..04d57474ef97 100644
--- a/drivers/mtd/nand/raw/txx9ndfmc.c
+++ b/drivers/mtd/nand/raw/txx9ndfmc.c
@@ -20,7 +20,7 @@
 #include <linux/mtd/nand_ecc.h>
 #include <linux/mtd/partitions.h>
 #include <linux/io.h>
-#include <asm/txx9/ndfmc.h>
+#include <linux/platform_data/txx9/ndfmc.h>
 
 /* TXX9 NDFMC Registers */
 #define TXX9_NDFDTR	0x00
diff --git a/arch/mips/include/asm/txx9/ndfmc.h b/include/linux/platform_data/txx9/ndfmc.h
similarity index 91%
rename from arch/mips/include/asm/txx9/ndfmc.h
rename to include/linux/platform_data/txx9/ndfmc.h
index fa67f3df78fc..fc172627d54e 100644
--- a/arch/mips/include/asm/txx9/ndfmc.h
+++ b/include/linux/platform_data/txx9/ndfmc.h
@@ -5,8 +5,8 @@
  *
  * (C) Copyright TOSHIBA CORPORATION 2007
  */
-#ifndef __ASM_TXX9_NDFMC_H
-#define __ASM_TXX9_NDFMC_H
+#ifndef __TXX9_NDFMC_H
+#define __TXX9_NDFMC_H
 
 #define NDFMC_PLAT_FLAG_USE_BSPRT	0x01
 #define NDFMC_PLAT_FLAG_NO_RSTR		0x02
@@ -27,4 +27,4 @@ struct txx9ndfmc_platform_data {
 void txx9_ndfmc_init(unsigned long baseaddr,
 		     const struct txx9ndfmc_platform_data *plat_data);
 
-#endif /* __ASM_TXX9_NDFMC_H */
+#endif /* __TXX9_NDFMC_H */
-- 
2.14.1

  parent reply	other threads:[~2018-07-05  9:45 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-05  9:44 [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
2018-07-05  9:44 ` [PATCH 01/27] mtd: rawnand: gpmi: Remove useless dependency on MTD_NAND Boris Brezillon
2018-07-05  9:44 ` [PATCH 02/27] mtd: rawnand: Add 'depends on HAS_IOMEM' where missing Boris Brezillon
2018-07-05  9:44 ` [PATCH 03/27] mtd: rawnand: atmel: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
2018-07-05  9:44 ` [PATCH 04/27] mtd: rawnand: omap2: " Boris Brezillon
2018-07-05  9:45 ` [PATCH 05/27] mtd: rawnand: s3c2410: " Boris Brezillon
2018-07-07 15:32   ` Boris Brezillon
2018-07-05  9:45 ` [PATCH 06/27] mtd: rawnand: sharpsl: Remove inclusion of mach and asm headers Boris Brezillon
2018-07-05  9:45 ` [PATCH 07/27] mtd: rawnand: sharpsl: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
2018-07-05  9:45 ` [PATCH 08/27] mtd: rawnand: lpc32xx: Allow selection of these drivers " Boris Brezillon
2018-07-05  9:45 ` [PATCH 09/27] mtd: rawnand: brcmnand: Allow selection of this driver " Boris Brezillon
2018-07-05  9:45 ` [PATCH 10/27] mtd: rawnand: orion: Avoid direct inclusion of asm headers Boris Brezillon
2018-07-05  9:45 ` [PATCH 11/27] mtd: rawnand: orion: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
2018-07-05  9:45 ` [PATCH 12/27] mtd: rawnand: mxc: Avoid inclusion of asm/mach headers Boris Brezillon
2018-07-05  9:45 ` [PATCH 13/27] mtd: rawnand: mxc: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
2018-07-05  9:45 ` [PATCH 14/27] mtd: rawnand: davinci: " Boris Brezillon
2018-07-05  9:45 ` [PATCH 15/27] mtd: rawnand: sunxi: " Boris Brezillon
2018-07-05  9:45 ` [PATCH 16/27] mtd: rawnand: qcom: " Boris Brezillon
2018-07-05  9:45 ` [PATCH 17/27] mtd: rawnand: fsmc: " Boris Brezillon
2018-07-08 13:06   ` Boris Brezillon
2018-07-05  9:45 ` [PATCH 18/27] mtd: rawnand: nuc900: " Boris Brezillon
2018-07-05  9:45 ` [PATCH 19/27] memory: fsl_ifc: " Boris Brezillon
2018-07-05  9:45 ` [PATCH 20/27] mtd: rawnand: " Boris Brezillon
2018-07-05  9:45 ` [PATCH 21/27] bcma: " Boris Brezillon
2018-07-06 14:32   ` Kalle Valo
2018-07-06 14:37     ` Boris Brezillon
2018-07-05  9:45 ` Boris Brezillon [this message]
2018-07-05  9:45 ` [PATCH 23/27] mtd: rawnand: txx9ndfmc: " Boris Brezillon
2018-07-05  9:45 ` [PATCH 24/27] MIPS: jz4740: Move jz4740_nand.h header to include/linux/platform_data/jz4740 Boris Brezillon
2018-07-05  9:45 ` [PATCH 25/27] mtd: rawnand: jz4740: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
2018-07-05  9:45 ` [PATCH 26/27] mtd: rawnand: jz4780: Drop the dependency on MACH_JZ4780 Boris Brezillon
2018-07-05  9:45 ` [PATCH 27/27] memory: jz4780-nemc: Allow selection of this driver when COMPILE_TEST=y Boris Brezillon
2018-07-05  9:49 ` [PATCH 00/27] mtd: rawnand: Improve compile-test coverage Boris Brezillon
2018-07-05 10:25 ` Geert Uytterhoeven
2018-07-06 14:40   ` Richard Weinberger
2018-07-08 21:55 ` Miquel Raynal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180705094522.12138-23-boris.brezillon@bootlin.com \
    --to=boris.brezillon@bootlin.com \
    --cc=computersforpeace@gmail.com \
    --cc=dwmw2@infradead.org \
    --cc=linux-mips@linux-mips.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=marek.vasut@gmail.com \
    --cc=miquel.raynal@bootlin.com \
    --cc=ralf@linux-mips.org \
    --cc=richard@nod.at \
    --cc=zajec5@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).