From: Zhou Yanjie <zhouyanjie@wanyeetech.com>
To: Paul Cercueil <paul@crapouillou.net>,
Kishon Vijay Abraham I <kishon@ti.com>,
Vinod Koul <vkoul@kernel.org>
Cc: 漆鹏振 <aric.pzqi@ingenic.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] phy: ingenic: Remove useless field .version
Date: Wed, 23 Dec 2020 22:15:32 +0800 [thread overview]
Message-ID: <67564e1e-a5a8-9e0f-6dc1-5e2ce1df5e5b@wanyeetech.com> (raw)
In-Reply-To: <20201223124505.40792-1-paul@crapouillou.net>
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,
> };
>
next prev parent reply other threads:[~2020-12-23 14:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-23 12:45 Paul Cercueil
2020-12-23 14:15 ` Zhou Yanjie [this message]
2021-01-13 12:17 ` Vinod Koul
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=67564e1e-a5a8-9e0f-6dc1-5e2ce1df5e5b@wanyeetech.com \
--to=zhouyanjie@wanyeetech.com \
--cc=aric.pzqi@ingenic.com \
--cc=kishon@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=paul@crapouillou.net \
--cc=vkoul@kernel.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
all inboxes | Powered by JetHome®