From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 8/9] include: Move smc911x eth platform_data to include/platform_data
Date: Fri, 15 Apr 2016 08:49:17 +0200 [thread overview]
Message-ID: <1460702958-4012-9-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-imx31/pcm037.c | 2 +-
arch/blackfin/boards/ipe337/ipe337.c | 2 +-
drivers/net/smc911x.c | 2 +-
include/platform_data/eth-smc911x.h | 24 ++++++++++++++++++++++++
include/smc911x.h | 24 ------------------------
5 files changed, 27 insertions(+), 27 deletions(-)
create mode 100644 include/platform_data/eth-smc911x.h
delete mode 100644 include/smc911x.h
diff --git a/arch/arm/boards/phytec-phycore-imx31/pcm037.c b/arch/arm/boards/phytec-phycore-imx31/pcm037.c
index a1ffb2e..39e7838 100644
--- a/arch/arm/boards/phytec-phycore-imx31/pcm037.c
+++ b/arch/arm/boards/phytec-phycore-imx31/pcm037.c
@@ -31,7 +31,7 @@
#include <asm/sections.h>
#include <mach/weim.h>
#include <io.h>
-#include <smc911x.h>
+#include <platform_data/eth-smc911x.h>
#include <asm/mmu.h>
#include <partition.h>
#include <generated/mach-types.h>
diff --git a/arch/blackfin/boards/ipe337/ipe337.c b/arch/blackfin/boards/ipe337/ipe337.c
index 84cc786..604062a 100644
--- a/arch/blackfin/boards/ipe337/ipe337.c
+++ b/arch/blackfin/boards/ipe337/ipe337.c
@@ -4,7 +4,7 @@
#include <asm/cpu/cdefBF561.h>
#include <partition.h>
#include <fs.h>
-#include <smc911x.h>
+#include <platform_data/eth-smc911x.h>
struct smc911x_plat smcplat = {
.shift = 1,
diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
index 9b1a38a..fe9d1df 100644
--- a/drivers/net/smc911x.c
+++ b/drivers/net/smc911x.c
@@ -28,7 +28,7 @@
#include <errno.h>
#include <clock.h>
#include <io.h>
-#include <smc911x.h>
+#include <platform_data/eth-smc911x.h>
#include <linux/phy.h>
#include "smc911x.h"
diff --git a/include/platform_data/eth-smc911x.h b/include/platform_data/eth-smc911x.h
new file mode 100644
index 0000000..4a802ee
--- /dev/null
+++ b/include/platform_data/eth-smc911x.h
@@ -0,0 +1,24 @@
+/*
+ * (C) Copyright 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
+ *
+ * Under GPLv2
+ */
+
+#ifndef __SMC911X_PLATFORM_H_
+#define __SMC911X_PLATFORM_H_
+
+/**
+ * @brief Platform dependent feature:
+ * Pass pointer to this structure as part of device_d -> platform_data
+ */
+struct smc911x_plat {
+ int shift;
+ unsigned int flags;
+ unsigned int phy_mask; /* external PHY only: mask out PHYs,
+ e.g. ~(1 << 5) to use PHY addr 5 */
+};
+
+#define SMC911X_FORCE_INTERNAL_PHY 0x01
+#define SMC911X_FORCE_EXTERNAL_PHY 0x02
+
+#endif /* __SMC911X_PLATFORM_H_ */
diff --git a/include/smc911x.h b/include/smc911x.h
deleted file mode 100644
index 4a802ee..0000000
--- a/include/smc911x.h
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * (C) Copyright 2012 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
- *
- * Under GPLv2
- */
-
-#ifndef __SMC911X_PLATFORM_H_
-#define __SMC911X_PLATFORM_H_
-
-/**
- * @brief Platform dependent feature:
- * Pass pointer to this structure as part of device_d -> platform_data
- */
-struct smc911x_plat {
- int shift;
- unsigned int flags;
- unsigned int phy_mask; /* external PHY only: mask out PHYs,
- e.g. ~(1 << 5) to use PHY addr 5 */
-};
-
-#define SMC911X_FORCE_INTERNAL_PHY 0x01
-#define SMC911X_FORCE_EXTERNAL_PHY 0x02
-
-#endif /* __SMC911X_PLATFORM_H_ */
--
2.7.0
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2016-04-15 6:50 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 ` Sascha Hauer [this message]
2016-04-15 6:49 ` [PATCH 9/9] include: Move ide " Sascha Hauer
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-9-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