Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1690702 > unrolled thread

[PATCH] pwm: Convert to using %pOF instead of full_name

Started byRob Herring <robh@kernel.org>
First post2017-07-18 23:50 +0200
Last post2017-07-25 13:40 +0200
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [PATCH] pwm: Convert to using %pOF instead of full_name Rob Herring <robh@kernel.org> - 2017-07-18 23:50 +0200
    Re: [PATCH] pwm: Convert to using %pOF instead of full_name Neil Armstrong <narmstrong@baylibre.com> - 2017-07-24 10:40 +0200
    Re: [PATCH] pwm: Convert to using %pOF instead of full_name Thierry Reding <thierry.reding@gmail.com> - 2017-07-25 13:40 +0200

#1690702 — [PATCH] pwm: Convert to using %pOF instead of full_name

FromRob Herring <robh@kernel.org>
Date2017-07-18 23:50 +0200
Subject[PATCH] pwm: Convert to using %pOF instead of full_name
Message-ID<u4Ixt-7K6-57@gated-at.bofh.it>
Now that we have a custom printf format specifier, convert users of
full_name to use %pOF instead. This is preparation to remove storing
of the full path string for each node.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Carlo Caione <carlo@caione.org>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: linux-pwm@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-amlogic@lists.infradead.org
---
 drivers/pwm/pwm-meson.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pwm/pwm-meson.c b/drivers/pwm/pwm-meson.c
index cb845edfe2b4..d589331d1884 100644
--- a/drivers/pwm/pwm-meson.c
+++ b/drivers/pwm/pwm-meson.c
@@ -441,7 +441,7 @@ static int meson_pwm_init_channels(struct meson_pwm *meson,
 	for (i = 0; i < meson->chip.npwm; i++) {
 		struct meson_pwm_channel *channel = &channels[i];

-		snprintf(name, sizeof(name), "%s#mux%u", np->full_name, i);
+		snprintf(name, sizeof(name), "%pOF#mux%u", np, i);

 		init.name = name;
 		init.ops = &clk_mux_ops;
--
2.11.0

[toc] | [next] | [standalone]


#1694540

FromNeil Armstrong <narmstrong@baylibre.com>
Date2017-07-24 10:40 +0200
Message-ID<u6H4e-2mn-9@gated-at.bofh.it>
In reply to#1690702
On 07/18/2017 11:43 PM, Rob Herring wrote:
> Now that we have a custom printf format specifier, convert users of
> full_name to use %pOF instead. This is preparation to remove storing
> of the full path string for each node.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> Cc: Thierry Reding <thierry.reding@gmail.com>
> Cc: Carlo Caione <carlo@caione.org>
> Cc: Kevin Hilman <khilman@baylibre.com>
> Cc: linux-pwm@vger.kernel.org
> Cc: linux-arm-kernel@lists.infradead.org
> Cc: linux-amlogic@lists.infradead.org
> ---
>  drivers/pwm/pwm-meson.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/pwm/pwm-meson.c b/drivers/pwm/pwm-meson.c
> index cb845edfe2b4..d589331d1884 100644
> --- a/drivers/pwm/pwm-meson.c
> +++ b/drivers/pwm/pwm-meson.c
> @@ -441,7 +441,7 @@ static int meson_pwm_init_channels(struct meson_pwm *meson,
>  	for (i = 0; i < meson->chip.npwm; i++) {
>  		struct meson_pwm_channel *channel = &channels[i];
> 
> -		snprintf(name, sizeof(name), "%s#mux%u", np->full_name, i);
> +		snprintf(name, sizeof(name), "%pOF#mux%u", np, i);
> 
>  		init.name = name;
>  		init.ops = &clk_mux_ops;
> --
> 2.11.0
> 
> 
> _______________________________________________
> linux-amlogic mailing list
> linux-amlogic@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-amlogic
> 

Acked-by: Neil Armstrong <narmstrong@baylibre.com>

[toc] | [prev] | [next] | [standalone]


#1695632

FromThierry Reding <thierry.reding@gmail.com>
Date2017-07-25 13:40 +0200
Message-ID<u76lY-2cr-19@gated-at.bofh.it>
In reply to#1690702

[Multipart message — attachments visible in raw view] — view raw

On Tue, Jul 18, 2017 at 04:43:25PM -0500, Rob Herring wrote:
> Now that we have a custom printf format specifier, convert users of
> full_name to use %pOF instead. This is preparation to remove storing
> of the full path string for each node.
> 
> Signed-off-by: Rob Herring <robh@kernel.org>
> Cc: Thierry Reding <thierry.reding@gmail.com>
> Cc: Carlo Caione <carlo@caione.org>
> Cc: Kevin Hilman <khilman@baylibre.com>
> Cc: linux-pwm@vger.kernel.org
> Cc: linux-arm-kernel@lists.infradead.org
> Cc: linux-amlogic@lists.infradead.org
> ---
>  drivers/pwm/pwm-meson.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks.

Thierry

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web