mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 9/9] include: Move ide platform_data to include/platform_data
Date: Fri, 15 Apr 2016 08:49:18 +0200	[thread overview]
Message-ID: <1460702958-4012-10-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1460702958-4012-1-git-send-email-s.hauer@pengutronix.de>

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
 arch/arm/boards/phytec-phycore-imx27/pcm970.c   |  2 +-
 arch/x86/boards/x86_generic/intf_platform_ide.c |  2 +-
 drivers/ata/intf_platform_ide.c                 |  2 +-
 drivers/ata/pata-imx.c                          |  2 +-
 include/platform_data/ide.h                     | 32 +++++++++++++++++++++++++
 include/platform_ide.h                          | 32 -------------------------
 6 files changed, 36 insertions(+), 36 deletions(-)
 create mode 100644 include/platform_data/ide.h
 delete mode 100644 include/platform_ide.h

diff --git a/arch/arm/boards/phytec-phycore-imx27/pcm970.c b/arch/arm/boards/phytec-phycore-imx27/pcm970.c
index 73df2ad..13bb7c1 100644
--- a/arch/arm/boards/phytec-phycore-imx27/pcm970.c
+++ b/arch/arm/boards/phytec-phycore-imx27/pcm970.c
@@ -15,7 +15,7 @@
 #include <gpio.h>
 #include <init.h>
 #include <io.h>
-#include <platform_ide.h>
+#include <platform_data/ide.h>
 #include <linux/sizes.h>
 #include <mach/imx27-regs.h>
 #include <mach/iomux-mx27.h>
diff --git a/arch/x86/boards/x86_generic/intf_platform_ide.c b/arch/x86/boards/x86_generic/intf_platform_ide.c
index 18a2620..528e721 100644
--- a/arch/x86/boards/x86_generic/intf_platform_ide.c
+++ b/arch/x86/boards/x86_generic/intf_platform_ide.c
@@ -24,7 +24,7 @@
 #include <driver.h>
 #include <init.h>
 #include <linux/err.h>
-#include <platform_ide.h>
+#include <platform_data/ide.h>
 #include "envsector.h"
 
 static struct ide_port_info ide_plat = {
diff --git a/drivers/ata/intf_platform_ide.c b/drivers/ata/intf_platform_ide.c
index 6e74bfb..c3af083 100644
--- a/drivers/ata/intf_platform_ide.c
+++ b/drivers/ata/intf_platform_ide.c
@@ -27,7 +27,7 @@
 #include <malloc.h>
 #include <errno.h>
 #include <ata_drive.h>
-#include <platform_ide.h>
+#include <platform_data/ide.h>
 #include <linux/err.h>
 #include <of.h>
 
diff --git a/drivers/ata/pata-imx.c b/drivers/ata/pata-imx.c
index 8429573..c8098a5 100644
--- a/drivers/ata/pata-imx.c
+++ b/drivers/ata/pata-imx.c
@@ -28,7 +28,7 @@
 #include <malloc.h>
 #include <errno.h>
 #include <ata_drive.h>
-#include <platform_ide.h>
+#include <platform_data/ide.h>
 #include <io.h>
 #include <of.h>
 #include <linux/err.h>
diff --git a/include/platform_data/ide.h b/include/platform_data/ide.h
new file mode 100644
index 0000000..f71fbfb
--- /dev/null
+++ b/include/platform_data/ide.h
@@ -0,0 +1,32 @@
+/*
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __PLATFORM_IDE_H
+#define __PLATFORM_IDE_H
+
+struct ide_port_info {
+	/*
+	 * I/O port shift, for platforms with ports that are
+	 * constantly spaced and need larger than the 1-byte
+	 * spacing
+	 */
+	unsigned ioport_shift;
+	int dataif_be;	/* true if 16 bit data register is big endian */
+
+	/* handle hard reset of this port */
+	void (*reset)(int);	/* true: assert reset, false: de-assert reset */
+};
+
+#endif /* __PLATFORM_IDE_H */
diff --git a/include/platform_ide.h b/include/platform_ide.h
deleted file mode 100644
index f71fbfb..0000000
--- a/include/platform_ide.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- */
-
-#ifndef __PLATFORM_IDE_H
-#define __PLATFORM_IDE_H
-
-struct ide_port_info {
-	/*
-	 * I/O port shift, for platforms with ports that are
-	 * constantly spaced and need larger than the 1-byte
-	 * spacing
-	 */
-	unsigned ioport_shift;
-	int dataif_be;	/* true if 16 bit data register is big endian */
-
-	/* handle hard reset of this port */
-	void (*reset)(int);	/* true: assert reset, false: de-assert reset */
-};
-
-#endif /* __PLATFORM_IDE_H */
-- 
2.7.0


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      parent reply	other threads:[~2016-04-15  6:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-15  6:49 [PATCH] move " Sascha Hauer
2016-04-15  6:49 ` [PATCH 1/9] include: Move ep93xx eth " Sascha Hauer
2016-04-15  6:49 ` [PATCH 2/9] include: Move smc91111 " Sascha Hauer
2016-04-15  6:49 ` [PATCH 3/9] include: Move designware " Sascha Hauer
2016-04-15  6:49 ` [PATCH 4/9] include: Move davinci emac " Sascha Hauer
2016-04-15  6:49 ` [PATCH 5/9] include: Move fec eth " Sascha Hauer
2016-04-15  6:49 ` [PATCH 6/9] include: Move ns16550 serial " Sascha Hauer
2016-04-15  6:49 ` [PATCH 7/9] include: Move dm9000 eth " Sascha Hauer
2016-04-15  6:49 ` [PATCH 8/9] include: Move smc911x " Sascha Hauer
2016-04-15  6:49 ` Sascha Hauer [this message]

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=1460702958-4012-10-git-send-email-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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