Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1432673 > unrolled thread

[PATCH] phy: xgene: rename "enum phy_mode" to "enum xgene_phy_mode"

Started byKishon Vijay Abraham I <kishon@ti.com>
First post2016-06-28 11:30 +0200
Last post2016-06-28 22:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] phy: xgene: rename "enum phy_mode" to "enum xgene_phy_mode" Kishon Vijay Abraham I <kishon@ti.com> - 2016-06-28 11:30 +0200
    Re: [PATCH] phy: xgene: rename "enum phy_mode" to "enum xgene_phy_mode" Loc Ho <lho@apm.com> - 2016-06-28 22:00 +0200

#1432673 — [PATCH] phy: xgene: rename "enum phy_mode" to "enum xgene_phy_mode"

FromKishon Vijay Abraham I <kishon@ti.com>
Date2016-06-28 11:30 +0200
Subject[PATCH] phy: xgene: rename "enum phy_mode" to "enum xgene_phy_mode"
Message-ID<rOXvb-50U-23@gated-at.bofh.it>
commit 96284c53246f ("phy: Add set_mode callback") introduced
enum phy_mode in phy_core. This introduced the following build
error.

drivers/phy/phy-xgene.c:521:6: error: nested redefinition of 'enum phy_mode'
 enum phy_mode {
      ^
drivers/phy/phy-xgene.c:521:6: error: redeclaration of 'enum phy_mode'
In file included from drivers/phy/phy-xgene.c:57:0:
include/linux/phy/phy.h:25:6: note: originally defined here
 enum phy_mode {
      ^
Fix it here.

Fixes: 96284c53246f ("phy: Add set_mode callback")
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
---
 drivers/phy/phy-xgene.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/phy/phy-xgene.c b/drivers/phy/phy-xgene.c
index 385362e..ae266e0 100644
--- a/drivers/phy/phy-xgene.c
+++ b/drivers/phy/phy-xgene.c
@@ -518,7 +518,7 @@ enum clk_type_t {
 	CLK_INT_SING = 2,	/* Internal single ended */
 };
 
-enum phy_mode {
+enum xgene_phy_mode {
 	MODE_SATA	= 0,	/* List them for simple reference */
 	MODE_SGMII	= 1,
 	MODE_PCIE	= 2,
@@ -542,7 +542,7 @@ struct xgene_sata_override_param {
 struct xgene_phy_ctx {
 	struct device *dev;
 	struct phy *phy;
-	enum phy_mode mode;		/* Mode of operation */
+	enum xgene_phy_mode mode;		/* Mode of operation */
 	enum clk_type_t clk_type;	/* Input clock selection */
 	void __iomem *sds_base;		/* PHY CSR base addr */
 	struct clk *clk;		/* Optional clock */
-- 
1.7.9.5

[toc] | [next] | [standalone]


#1433261

FromLoc Ho <lho@apm.com>
Date2016-06-28 22:00 +0200
Message-ID<rP7kR-2R4-17@gated-at.bofh.it>
In reply to#1432673
Hi,

> commit 96284c53246f ("phy: Add set_mode callback") introduced
> enum phy_mode in phy_core. This introduced the following build
> error.
>
> drivers/phy/phy-xgene.c:521:6: error: nested redefinition of 'enum phy_mode'
>  enum phy_mode {
>       ^
> drivers/phy/phy-xgene.c:521:6: error: redeclaration of 'enum phy_mode'
> In file included from drivers/phy/phy-xgene.c:57:0:
> include/linux/phy/phy.h:25:6: note: originally defined here
>  enum phy_mode {
>       ^
> Fix it here.
>
> Fixes: 96284c53246f ("phy: Add set_mode callback")
> Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>

You can add my:

Reviewed-by: Loc Ho <lho@apm.com>

-Loc

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web