* [PATCH] phy: ingenic: Remove useless field .version
@ 2020-12-23 12:45 Paul Cercueil
2020-12-23 14:15 ` Zhou Yanjie
2021-01-13 12:17 ` Vinod Koul
0 siblings, 2 replies; 3+ messages in thread
From: Paul Cercueil @ 2020-12-23 12:45 UTC (permalink / raw)
To: Kishon Vijay Abraham I, Vinod Koul
Cc: 漆鹏振, 周琰杰,
linux-kernel, Paul Cercueil
Remove the useless field .version from the private structure, which is
set but never read.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---
drivers/phy/ingenic/phy-ingenic-usb.c | 23 -----------------------
1 file changed, 23 deletions(-)
diff --git a/drivers/phy/ingenic/phy-ingenic-usb.c b/drivers/phy/ingenic/phy-ingenic-usb.c
index 4d1587d82286..ea127b177f46 100644
--- a/drivers/phy/ingenic/phy-ingenic-usb.c
+++ b/drivers/phy/ingenic/phy-ingenic-usb.c
@@ -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,
};
--
2.29.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] phy: ingenic: Remove useless field .version
2020-12-23 12:45 [PATCH] phy: ingenic: Remove useless field .version Paul Cercueil
@ 2020-12-23 14:15 ` Zhou Yanjie
2021-01-13 12:17 ` Vinod Koul
1 sibling, 0 replies; 3+ messages in thread
From: Zhou Yanjie @ 2020-12-23 14:15 UTC (permalink / raw)
To: Paul Cercueil, Kishon Vijay Abraham I, Vinod Koul
Cc: 漆鹏振, linux-kernel
Hi Paul,
On 2020/12/23 下午8:45, Paul Cercueil wrote:
> Remove the useless field .version from the private structure, which is
> set but never read.
>
> Signed-off-by: Paul Cercueil <paul@crapouillou.net>
> ---
> drivers/phy/ingenic/phy-ingenic-usb.c | 23 -----------------------
> 1 file changed, 23 deletions(-)
Reviewed-by: 周琰杰 (Zhou Yanjie) <zhouyanjie@wanyeetech.com>
Thanks and best regards!
>
> diff --git a/drivers/phy/ingenic/phy-ingenic-usb.c b/drivers/phy/ingenic/phy-ingenic-usb.c
> index 4d1587d82286..ea127b177f46 100644
> --- a/drivers/phy/ingenic/phy-ingenic-usb.c
> +++ b/drivers/phy/ingenic/phy-ingenic-usb.c
> @@ -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,
> };
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] phy: ingenic: Remove useless field .version
2020-12-23 12:45 [PATCH] phy: ingenic: Remove useless field .version Paul Cercueil
2020-12-23 14:15 ` Zhou Yanjie
@ 2021-01-13 12:17 ` Vinod Koul
1 sibling, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2021-01-13 12:17 UTC (permalink / raw)
To: Paul Cercueil
Cc: Kishon Vijay Abraham I, 漆鹏振,
周琰杰,
linux-kernel
On 23-12-20, 12:45, Paul Cercueil wrote:
> Remove the useless field .version from the private structure, which is
> set but never read.
Applied, thanks
--
~Vinod
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-01-13 12:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-23 12:45 [PATCH] phy: ingenic: Remove useless field .version Paul Cercueil
2020-12-23 14:15 ` Zhou Yanjie
2021-01-13 12:17 ` Vinod Koul
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.