Skip to contentSkip to conversation

phy: ingenic: Remove useless field .version

PATCH Applied Paul Cercueil 3 participants 3 messages Dec 23, 2020 – Jan 13, 2021 Generic PHY framework

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 phy: ingenic: Remove useless field .version

Remove the useless field .version from the private structure, which is set but never read.

---
 drivers/phy/ingenic/phy-ingenic-usb.c | 23 -----------------------
 1 file changed, 23 deletions(-)
drivers/phy/ingenic/phy-ingenic-usb.c +0 -23
index 4d1587d82286..ea127b177f46 100644
@@ -82,18 +82,7 @@
 #define USBPCR1_PORT_RST			BIT(21)
 #define USBPCR1_WORD_IF_16BIT		BIT(19)
 
-enum ingenic_usb_phy_version {
-	ID_JZ4770,
-	ID_JZ4775,
-	ID_JZ4780,
-	ID_X1000,
-	ID_X1830,
-	ID_X2000,
-};
-
 struct ingenic_soc_info {
-	enum ingenic_usb_phy_version version;
-
 	void (*usb_phy_init)(struct phy *phy);
 };
 
@@ -300,38 +289,26 @@ static void x2000_usb_phy_init(struct phy *phy)
 }
 
 static const struct ingenic_soc_info jz4770_soc_info = {
-	.version = ID_JZ4770,
-
 	.usb_phy_init = jz4770_usb_phy_init,
 };
 
 static const struct ingenic_soc_info jz4775_soc_info = {
-	.version = ID_JZ4775,
-
 	.usb_phy_init = jz4775_usb_phy_init,
 };
 
 static const struct ingenic_soc_info jz4780_soc_info = {
-	.version = ID_JZ4780,
-
 	.usb_phy_init = jz4780_usb_phy_init,
 };
 
 static const struct ingenic_soc_info x1000_soc_info = {
-	.version = ID_X1000,
-
 	.usb_phy_init = x1000_usb_phy_init,
 };
 
 static const struct ingenic_soc_info x1830_soc_info = {
-	.version = ID_X1830,
-
 	.usb_phy_init = x1830_usb_phy_init,
 };
 
 static const struct ingenic_soc_info x2000_soc_info = {
-	.version = ID_X2000,
-
 	.usb_phy_init = x2000_usb_phy_init,
 };
 
Signature · 1 line
2.29.2
Reviewed-by on v1 1/1
#1 lore raw

Hi Paul,

Quoted 7 lines · Paul Cercueil

Remove the useless field .version from the private structure, which is set but never read.

---
  drivers/phy/ingenic/phy-ingenic-usb.c | 23 -----------------------
  1 file changed, 23 deletions(-)

Thanks and best regards!

Quoted 63 lines
drivers/phy/ingenic/phy-ingenic-usb.c +0 -23
index 4d1587d82286..ea127b177f46 100644
@@ -82,18 +82,7 @@
  #define USBPCR1_PORT_RST			BIT(21)
  #define USBPCR1_WORD_IF_16BIT		BIT(19)
 
-enum ingenic_usb_phy_version {
-	ID_JZ4770,
-	ID_JZ4775,
-	ID_JZ4780,
-	ID_X1000,
-	ID_X1830,
-	ID_X2000,
-};
-
  struct ingenic_soc_info {
-	enum ingenic_usb_phy_version version;
-
  	void (*usb_phy_init)(struct phy *phy);
  };
 
@@ -300,38 +289,26 @@ static void x2000_usb_phy_init(struct phy *phy)
  }
 
  static const struct ingenic_soc_info jz4770_soc_info = {
-	.version = ID_JZ4770,
-
  	.usb_phy_init = jz4770_usb_phy_init,
  };
 
  static const struct ingenic_soc_info jz4775_soc_info = {
-	.version = ID_JZ4775,
-
  	.usb_phy_init = jz4775_usb_phy_init,
  };
 
  static const struct ingenic_soc_info jz4780_soc_info = {
-	.version = ID_JZ4780,
-
  	.usb_phy_init = jz4780_usb_phy_init,
  };
 
  static const struct ingenic_soc_info x1000_soc_info = {
-	.version = ID_X1000,
-
  	.usb_phy_init = x1000_usb_phy_init,
  };
 
  static const struct ingenic_soc_info x1830_soc_info = {
-	.version = ID_X1830,
-
  	.usb_phy_init = x1830_usb_phy_init,
  };
 
  static const struct ingenic_soc_info x2000_soc_info = {
-	.version = ID_X2000,
-
  	.usb_phy_init = x2000_usb_phy_init,
  };
 
maintainer Applied
#2 lore raw
In reply to Paul Cercueil
Quoted 2 lines · Paul Cercueil

Remove the useless field .version from the private structure, which is set but never read.

Applied, thanks

Signature · 1 line
~Vinod