]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm: Convert to using %pOFn instead of device_node.name
authorRob Herring <robh@kernel.org>
Fri, 28 Sep 2018 22:50:44 +0000 (17:50 -0500)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 1 Oct 2018 08:16:39 +0000 (10:16 +0200)
In preparation to remove the node name pointer from struct device_node,
convert printf users to use the %pOFn format specifier.

For drm_modes.c, the full node path is already printed out, so printing
just the node name a 2nd time is redundant and can be removed.

Cc: Gustavo Padovan <gustavo@padovan.org>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Sean Paul <sean@poorly.run>
Cc: David Airlie <airlied@linux.ie>
Acked-by: Rob Clark <robdclark@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Cc: linux-arm-msm@vger.kernel.org
Cc: freedreno@lists.freedesktop.org
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20180928225044.20132-1-robh@kernel.org
drivers/gpu/drm/drm_modes.c
drivers/gpu/drm/msm/hdmi/hdmi.c

index 02db9ac82d7a91a9b7de054a71a92e377d27a3d5..24a7504365596c32c60333ad04e25ba1c26306bf 100644 (file)
@@ -716,8 +716,8 @@ int of_get_drm_display_mode(struct device_node *np,
        if (bus_flags)
                drm_bus_flags_from_videomode(&vm, bus_flags);
 
-       pr_debug("%pOF: got %dx%d display mode from %s\n",
-               np, vm.hactive, vm.vactive, np->name);
+       pr_debug("%pOF: got %dx%d display mode\n",
+               np, vm.hactive, vm.vactive);
        drm_mode_debug_printmodeline(dmode);
 
        return 0;
index c79659ca570655da77888052fc47a16bc53cf409..23670907a29d2420f92fdab966cf97fb7b23129d 100644 (file)
@@ -579,7 +579,7 @@ static int msm_hdmi_bind(struct device *dev, struct device *master, void *data)
        hdmi_cfg = (struct hdmi_platform_config *)
                        of_device_get_match_data(dev);
        if (!hdmi_cfg) {
-               dev_err(dev, "unknown hdmi_cfg: %s\n", of_node->name);
+               dev_err(dev, "unknown hdmi_cfg: %pOFn\n", of_node);
                return -ENXIO;
        }