pwm: Convert to using %pOF instead of full_name
Subsystems (2)
PATCH 1/1 pwm: Convert to using %pOF instead of full_name
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.
--- drivers/pwm/pwm-meson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pwm/pwm-meson.c +1 -1
@@ -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
Quoted 32 lines · Rob Herring
Now that we have a custom printf format specifier, convert users of
full_nameto use %pOF instead. This is preparation to remove storing of the full path string for each node.Signed-off-by Rob Herring <[email protected]>Cc Thierry Reding <[email protected]>Cc Carlo Caione <[email protected]>Cc Kevin Hilman <[email protected]>Cc linux-pwm at vger.kernel.orgCc linux-arm-kernel at lists.infradead.orgCc linux-amlogic at lists.infradead.org--- drivers/pwm/pwm-meson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/pwm/pwm-meson.c +1
-2@@ -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
Quoted 5 lines
_______________________________________________
linux-amlogic mailing list
linux-amlogic at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
Thierry Reding
AppliedQuoted 11 lines · Rob Herring
Now that we have a custom printf format specifier, convert users of
full_nameto use %pOF instead. This is preparation to remove storing of the full path string for each node.Signed-off-by Rob Herring <[email protected]>Cc Thierry Reding <[email protected]>Cc Carlo Caione <[email protected]>Cc Kevin Hilman <[email protected]>Cc linux-pwm at vger.kernel.orgCc linux-arm-kernel at lists.infradead.orgCc linux-amlogic at lists.infradead.org
Quoted 3 lines
--- drivers/pwm/pwm-meson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-amlogic/attachments/20170725/0870a355/attachment.sig>
Quoted 16 lines · Thierry Reding
Quoted 11 lines · Rob Herring
Now that we have a custom printf format specifier, convert users of
full_nameto use %pOF instead. This is preparation to remove storing of the full path string for each node.Signed-off-by Rob Herring <[email protected]>Cc Thierry Reding <[email protected]>Cc Carlo Caione <[email protected]>Cc Kevin Hilman <[email protected]>Cc linux-pwm at vger.kernel.orgCc linux-arm-kernel at lists.infradead.orgCc linux-amlogic at lists.infradead.orgQuoted 3 lines
--- drivers/pwm/pwm-meson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 1 line
Applied, thanks.
This is not showing up in -next.
Rob
Quoted 18 lines · Rob Herring
Quoted 16 lines · Thierry Reding
Quoted 14 lines · Rob Herring
Now that we have a custom printf format specifier, convert users of
full_nameto use %pOF instead. This is preparation to remove storing of the full path string for each node.Signed-off-by Rob Herring <[email protected]>Cc Thierry Reding <[email protected]>Cc Carlo Caione <[email protected]>Cc Kevin Hilman <[email protected]>Cc linux-pwm at vger.kernel.orgCc linux-arm-kernel at lists.infradead.orgCc linux-amlogic at lists.infradead.org--- drivers/pwm/pwm-meson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 3 lines
Quoted 1 line
Applied, thanks.
This is not showing up in -next.
Yes, I had forgotten to push this out. I've done that now, so it should be in the next -next.
Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-amlogic/attachments/20170821/338c205e/attachment.sig>