* [PATCH] phy: rockchip-inno-usb2: cleanup comments and make ops static
@ 2023-06-19 7:24 Xavier Drudis Ferran
2023-06-19 9:08 ` Marek Vasut
0 siblings, 1 reply; 4+ messages in thread
From: Xavier Drudis Ferran @ 2023-06-19 7:24 UTC (permalink / raw)
To: u-boot
Cc: Kever Yang, Simon Glass, Philipp Tomsich, Lukasz Majewski,
Sean Anderson, Marek Vasut, Christoph Fritz
Thanks to Jagan Teki for noting that three functions should be static
and comments from uclass_clk are redundant.
Signed-off-by: Xavier Drudis Ferran <xdrudis@tinet.cat>
---
drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 25 +++----------------
1 file changed, 3 insertions(+), 22 deletions(-)
diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
index be5f79490c..2b33b6f03c 100644
--- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
+++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
@@ -182,25 +182,12 @@ static struct phy_ops rockchip_usb2phy_ops = {
.of_xlate = rockchip_usb2phy_of_xlate,
};
-/**
- * round_rate() - Adjust a rate to the exact rate a clock can provide.
- * @clk: The clock to manipulate.
- * @rate: Desidered clock rate in Hz.
- *
- * Return: rounded rate in Hz, or -ve error code.
- */
-ulong rockchip_usb2phy_clk_round_rate(struct clk *clk, ulong rate)
+static ulong rockchip_usb2phy_clk_round_rate(struct clk *clk, ulong rate)
{
return 480000000;
}
-/**
- * enable() - Enable a clock.
- * @clk: The clock to manipulate.
- *
- * Return: zero on success, or -ve error code.
- */
-int rockchip_usb2phy_clk_enable(struct clk *clk)
+static int rockchip_usb2phy_clk_enable(struct clk *clk)
{
struct udevice *parent = dev_get_parent(clk->dev);
struct rockchip_usb2phy *priv = dev_get_priv(parent);
@@ -217,13 +204,7 @@ int rockchip_usb2phy_clk_enable(struct clk *clk)
return 0;
}
-/**
- * disable() - Disable a clock.
- * @clk: The clock to manipulate.
- *
- * Return: zero on success, or -ve error code.
- */
-int rockchip_usb2phy_clk_disable(struct clk *clk)
+static int rockchip_usb2phy_clk_disable(struct clk *clk)
{
struct udevice *parent = dev_get_parent(clk->dev);
struct rockchip_usb2phy *priv = dev_get_priv(parent);
--
2.20.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] phy: rockchip-inno-usb2: cleanup comments and make ops static
2023-06-19 7:24 [PATCH] phy: rockchip-inno-usb2: cleanup comments and make ops static Xavier Drudis Ferran
@ 2023-06-19 9:08 ` Marek Vasut
2023-06-19 9:28 ` Jagan Teki
0 siblings, 1 reply; 4+ messages in thread
From: Marek Vasut @ 2023-06-19 9:08 UTC (permalink / raw)
To: Xavier Drudis Ferran, u-boot
Cc: Kever Yang, Simon Glass, Philipp Tomsich, Lukasz Majewski,
Sean Anderson, Christoph Fritz
On 6/19/23 09:24, Xavier Drudis Ferran wrote:
> Thanks to Jagan Teki for noting that three functions should be static
> and comments from uclass_clk are redundant.
The change log should be at below --- , the commit message should be above.
> Signed-off-by: Xavier Drudis Ferran <xdrudis@tinet.cat>
> ---
> drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 25 +++----------------
> 1 file changed, 3 insertions(+), 22 deletions(-)
>
> diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
> index be5f79490c..2b33b6f03c 100644
> --- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
> +++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
> @@ -182,25 +182,12 @@ static struct phy_ops rockchip_usb2phy_ops = {
> .of_xlate = rockchip_usb2phy_of_xlate,
> };
>
> -/**
> - * round_rate() - Adjust a rate to the exact rate a clock can provide.
> - * @clk: The clock to manipulate.
> - * @rate: Desidered clock rate in Hz.
> - *
> - * Return: rounded rate in Hz, or -ve error code.
> - */
> -ulong rockchip_usb2phy_clk_round_rate(struct clk *clk, ulong rate)
Why is the documentation dropped ?
[...]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] phy: rockchip-inno-usb2: cleanup comments and make ops static
2023-06-19 9:08 ` Marek Vasut
@ 2023-06-19 9:28 ` Jagan Teki
2023-06-19 10:23 ` Xavier Drudis Ferran
0 siblings, 1 reply; 4+ messages in thread
From: Jagan Teki @ 2023-06-19 9:28 UTC (permalink / raw)
To: Marek Vasut
Cc: Xavier Drudis Ferran, u-boot, Kever Yang, Simon Glass,
Philipp Tomsich, Lukasz Majewski, Sean Anderson, Christoph Fritz
On Mon, Jun 19, 2023 at 2:39 PM Marek Vasut <marex@denx.de> wrote:
>
> On 6/19/23 09:24, Xavier Drudis Ferran wrote:
> > Thanks to Jagan Teki for noting that three functions should be static
> > and comments from uclass_clk are redundant.
>
> The change log should be at below --- , the commit message should be above.
>
> > Signed-off-by: Xavier Drudis Ferran <xdrudis@tinet.cat>
> > ---
> > drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 25 +++----------------
> > 1 file changed, 3 insertions(+), 22 deletions(-)
> >
> > diff --git a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
> > index be5f79490c..2b33b6f03c 100644
> > --- a/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
> > +++ b/drivers/phy/rockchip/phy-rockchip-inno-usb2.c
> > @@ -182,25 +182,12 @@ static struct phy_ops rockchip_usb2phy_ops = {
> > .of_xlate = rockchip_usb2phy_of_xlate,
> > };
> >
> > -/**
> > - * round_rate() - Adjust a rate to the exact rate a clock can provide.
> > - * @clk: The clock to manipulate.
> > - * @rate: Desidered clock rate in Hz.
> > - *
> > - * Return: rounded rate in Hz, or -ve error code.
> > - */
> > -ulong rockchip_usb2phy_clk_round_rate(struct clk *clk, ulong rate)
>
> Why is the documentation dropped ?
As these comments seem redundant as in clk-uclass.h definitions, so I
asked to drop the same from the driver.
Xavier, can you add the details in the commit message?
Jagan.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] phy: rockchip-inno-usb2: cleanup comments and make ops static
2023-06-19 9:28 ` Jagan Teki
@ 2023-06-19 10:23 ` Xavier Drudis Ferran
0 siblings, 0 replies; 4+ messages in thread
From: Xavier Drudis Ferran @ 2023-06-19 10:23 UTC (permalink / raw)
To: Jagan Teki
Cc: Marek Vasut, Xavier Drudis Ferran, u-boot, Kever Yang,
Simon Glass, Philipp Tomsich, Lukasz Majewski, Sean Anderson,
Christoph Fritz
El Mon, Jun 19, 2023 at 02:58:50PM +0530, Jagan Teki deia:
> On Mon, Jun 19, 2023 at 2:39 PM Marek Vasut <marex@denx.de> wrote:
> >
> > On 6/19/23 09:24, Xavier Drudis Ferran wrote:
> > > Thanks to Jagan Teki for noting that three functions should be static
> > > and comments from uclass_clk are redundant.
[...]
> >
> > Why is the documentation dropped ?
>
> As these comments seem redundant as in clk-uclass.h definitions, so I
> asked to drop the same from the driver.
>
> Xavier, can you add the details in the commit message?
>
> Jagan.
Which details ? The commit message says "comments from uclass_clk are
redundant" . What should it say ? Do you want me to copy the deleted
comments to the commit message ??
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-06-19 11:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-19 7:24 [PATCH] phy: rockchip-inno-usb2: cleanup comments and make ops static Xavier Drudis Ferran
2023-06-19 9:08 ` Marek Vasut
2023-06-19 9:28 ` Jagan Teki
2023-06-19 10:23 ` Xavier Drudis Ferran
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.