]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
pwm: Convert to using %pOF instead of full_name
authorRob Herring <robh@kernel.org>
Tue, 18 Jul 2017 21:43:25 +0000 (16:43 -0500)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 25 Jul 2017 11:38:22 +0000 (13:38 +0200)
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
Acked-by: Neil Armstrong <narmstrong@baylibre.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-meson.c

index cb845edfe2b42e69e8fd827f17c450311724c452..d589331d1884b29f938c47f9fb3308ffcb212026 100644 (file)
@@ -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;