* [PATCH] pwm: imx-tpm: Use a single line for error message
@ 2021-03-04 2:42 Fabio Estevam
2021-03-04 6:47 ` Uwe Kleine-König
2021-03-22 10:50 ` Thierry Reding
0 siblings, 2 replies; 3+ messages in thread
From: Fabio Estevam @ 2021-03-04 2:42 UTC (permalink / raw)
To: thierry.reding; +Cc: u.kleine-koenig, linux-pwm, Fabio Estevam
There is no need to split the dev_err() call in three lines.
Use a single line to improve readability.
Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
drivers/pwm/pwm-imx-tpm.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/pwm/pwm-imx-tpm.c b/drivers/pwm/pwm-imx-tpm.c
index aaf629bd8c35..eec9ec4e1a2a 100644
--- a/drivers/pwm/pwm-imx-tpm.c
+++ b/drivers/pwm/pwm-imx-tpm.c
@@ -411,9 +411,7 @@ static int __maybe_unused pwm_imx_tpm_resume(struct device *dev)
ret = clk_prepare_enable(tpm->clk);
if (ret)
- dev_err(dev,
- "failed to prepare or enable clock: %d\n",
- ret);
+ dev_err(dev, "failed to prepare or enable clock: %d\n", ret);
return ret;
}
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] pwm: imx-tpm: Use a single line for error message
2021-03-04 2:42 [PATCH] pwm: imx-tpm: Use a single line for error message Fabio Estevam
@ 2021-03-04 6:47 ` Uwe Kleine-König
2021-03-22 10:50 ` Thierry Reding
1 sibling, 0 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2021-03-04 6:47 UTC (permalink / raw)
To: Fabio Estevam; +Cc: thierry.reding, linux-pwm, Lee Jones, kernel
[-- Attachment #1: Type: text/plain, Size: 1240 bytes --]
Hello Fabio,
[expanding Cc: a bit]
On Wed, Mar 03, 2021 at 11:42:42PM -0300, Fabio Estevam wrote:
> There is no need to split the dev_err() call in three lines.
>
> Use a single line to improve readability.
For me the reason to like this change is more to save vertical space
without making readability worse, but *shrug*.
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thanks
Uwe
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
> ---
> drivers/pwm/pwm-imx-tpm.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/pwm/pwm-imx-tpm.c b/drivers/pwm/pwm-imx-tpm.c
> index aaf629bd8c35..eec9ec4e1a2a 100644
> --- a/drivers/pwm/pwm-imx-tpm.c
> +++ b/drivers/pwm/pwm-imx-tpm.c
> @@ -411,9 +411,7 @@ static int __maybe_unused pwm_imx_tpm_resume(struct device *dev)
>
> ret = clk_prepare_enable(tpm->clk);
> if (ret)
> - dev_err(dev,
> - "failed to prepare or enable clock: %d\n",
> - ret);
> + dev_err(dev, "failed to prepare or enable clock: %d\n", ret);
>
> return ret;
> }
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] pwm: imx-tpm: Use a single line for error message
2021-03-04 2:42 [PATCH] pwm: imx-tpm: Use a single line for error message Fabio Estevam
2021-03-04 6:47 ` Uwe Kleine-König
@ 2021-03-22 10:50 ` Thierry Reding
1 sibling, 0 replies; 3+ messages in thread
From: Thierry Reding @ 2021-03-22 10:50 UTC (permalink / raw)
To: Fabio Estevam; +Cc: u.kleine-koenig, linux-pwm
[-- Attachment #1: Type: text/plain, Size: 362 bytes --]
On Wed, Mar 03, 2021 at 11:42:42PM -0300, Fabio Estevam wrote:
> There is no need to split the dev_err() call in three lines.
>
> Use a single line to improve readability.
>
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
> ---
> drivers/pwm/pwm-imx-tpm.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
Applied, thanks.
Thierry
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-22 10:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-04 2:42 [PATCH] pwm: imx-tpm: Use a single line for error message Fabio Estevam
2021-03-04 6:47 ` Uwe Kleine-König
2021-03-22 10:50 ` Thierry Reding
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.