All of lore.kernel.org
 help / color / mirror / Atom feed
From: Abel Vesa <abel.vesa@nxp.com>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: linux-clk@vger.kernel.org,
	Michael Turquette <mturquette@baylibre.com>,
	Stephen Boyd <sboyd@kernel.org>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	Fabio Estevam <festevam@gmail.com>,
	NXP Linux Team <linux-imx@nxp.com>,
	Adrian Alonso <adrian.alonso@nxp.com>,
	Mads Bligaard Nielsen <bli@bang-olufsen.dk>
Subject: Re: [PATCH v2 7/8] clk: imx: pll14xx: Add pr_fmt
Date: Fri, 25 Feb 2022 15:27:52 +0200	[thread overview]
Message-ID: <YhjZWOuWh6T2Xkvu@abelvesa> (raw)
In-Reply-To: <20220225082937.2746176-8-s.hauer@pengutronix.de>

On 22-02-25 09:29:36, Sascha Hauer wrote:
> Print all messages from within the pll14xx driver with a common
> prefix using pr_fmt. No need to print function names anymore, so
> drop them from the messages.
> 
> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>

Reviewed-by: Abel Vesa <abel.vesa@nxp.com>

> ---
> 
> Notes:
>     Changes since v1:
>     - Drop __func__ argument for which the %s was removed
> 
>  drivers/clk/imx/clk-pll14xx.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/clk/imx/clk-pll14xx.c b/drivers/clk/imx/clk-pll14xx.c
> index af4c979e70a64..646e0ce7d6242 100644
> --- a/drivers/clk/imx/clk-pll14xx.c
> +++ b/drivers/clk/imx/clk-pll14xx.c
> @@ -3,6 +3,8 @@
>   * Copyright 2017-2018 NXP.
>   */
>  
> +#define pr_fmt(fmt) "pll14xx: " fmt
> +
>  #include <linux/bitfield.h>
>  #include <linux/bits.h>
>  #include <linux/clk-provider.h>
> @@ -177,8 +179,8 @@ static int clk_pll1416x_set_rate(struct clk_hw *hw, unsigned long drate,
>  
>  	rate = imx_get_pll_settings(pll, drate);
>  	if (!rate) {
> -		pr_err("%s: Invalid rate : %lu for pll clk %s\n", __func__,
> -		       drate, clk_hw_get_name(hw));
> +		pr_err("Invalid rate %lu for pll clk %s\n", drate,
> +		       clk_hw_get_name(hw));
>  		return -EINVAL;
>  	}
>  
> @@ -404,8 +406,7 @@ struct clk_hw *imx_dev_clk_hw_pll14xx(struct device *dev, const char *name,
>  		init.ops = &clk_pll1443x_ops;
>  		break;
>  	default:
> -		pr_err("%s: Unknown pll type for pll clk %s\n",
> -		       __func__, name);
> +		pr_err("Unknown pll type for pll clk %s\n", name);
>  		kfree(pll);
>  		return ERR_PTR(-EINVAL);
>  	}
> @@ -424,8 +425,7 @@ struct clk_hw *imx_dev_clk_hw_pll14xx(struct device *dev, const char *name,
>  
>  	ret = clk_hw_register(dev, hw);
>  	if (ret) {
> -		pr_err("%s: failed to register pll %s %d\n",
> -			__func__, name, ret);
> +		pr_err("failed to register pll %s %d\n", name, ret);
>  		kfree(pll);
>  		return ERR_PTR(ret);
>  	}
> -- 
> 2.30.2
>

  reply	other threads:[~2022-02-25 13:28 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-25  8:29 [PATCH v2 0/8] clk: i.MX: PLL14xx: Support dynamic rates Sascha Hauer
2022-02-25  8:29 ` [PATCH v2 1/8] clk: imx: pll14xx: Use register defines consistently Sascha Hauer
2022-02-25  8:29 ` [PATCH v2 2/8] clk: imx: pll14xx: Drop wrong shifting Sascha Hauer
2022-02-25  8:29 ` [PATCH v2 3/8] clk: imx: pll14xx: Use FIELD_GET/FIELD_PREP Sascha Hauer
2022-02-25  8:29 ` [PATCH v2 4/8] clk: imx: pll14xx: consolidate rate calculation Sascha Hauer
2022-02-25 13:24   ` Abel Vesa
2022-02-25  8:29 ` [PATCH v2 5/8] clk: imx: pll14xx: name variables after usage Sascha Hauer
2022-02-25 13:25   ` Abel Vesa
2022-02-25  8:29 ` [PATCH v2 6/8] clk: imx: pll14xx: explicitly return lowest rate Sascha Hauer
2022-02-25 13:26   ` Abel Vesa
2022-02-25  8:29 ` [PATCH v2 7/8] clk: imx: pll14xx: Add pr_fmt Sascha Hauer
2022-02-25 13:27   ` Abel Vesa [this message]
2022-02-25  8:29 ` [PATCH v2 8/8] clk: imx: pll14xx: Support dynamic rates Sascha Hauer
2022-02-25 14:13   ` Abel Vesa
2022-03-04  8:39     ` Abel Vesa
2022-03-04 12:44     ` Sascha Hauer

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=YhjZWOuWh6T2Xkvu@abelvesa \
    --to=abel.vesa@nxp.com \
    --cc=adrian.alonso@nxp.com \
    --cc=bli@bang-olufsen.dk \
    --cc=festevam@gmail.com \
    --cc=kernel@pengutronix.de \
    --cc=linux-clk@vger.kernel.org \
    --cc=linux-imx@nxp.com \
    --cc=mturquette@baylibre.com \
    --cc=s.hauer@pengutronix.de \
    --cc=sboyd@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 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.