drm/debugfs: Drop conditionals around of_node pointers
Subsystems (2)
PATCH v2 1/1 drm/debugfs: Drop conditionals around of_node pointers
Having conditional around the of_node pointer of the drm_bridge structure is not necessary anymore, since drm_bridge structure always has the of_node member since the commit d8dfccde2709 ("drm/bridge: Drop conditionals around of_node pointers").
So drop the conditional, please also note that this patch is following the convention used by driver core, see commit c9e358dfc4a8 ("driver-core:
remove conditionals around devicetree pointers").
---
v2: Update commit message
--- drivers/gpu/drm/drm_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/drm_debugfs.c +2 -2
@@ -597,10 +597,10 @@ static int bridges_show(struct seq_file *m, void *data)drm_printf (&p,"\ttype: [%d] %s\n" , bridge->type,drm_get_connector_type_name (bridge->type)); -#ifdef CONFIG_OF +if (bridge->of_node)drm_printf (&p,"\tOF: %pOFfc\n" , bridge->of_node); -#endif +drm_printf (&p,"\tops: [0x%x]" , bridge->ops);if (bridge->ops &DRM_BRIDGE_OP_DETECT )drm_puts (&p," detect" );
Signature · 1 line
2.34.1
Doug Anderson
AppliedHi,
Quoted 10 lines · Sui Jingfeng
Having conditional around the
of_nodepointer of thedrm_bridgestructure is not necessary anymore, sincedrm_bridgestructure always has theof_nodemember since the commitd8dfccde2709("drm/bridge: Drop conditionals aroundof_nodepointers").So drop the conditional, please also note that this patch is following the convention used by driver core, see commit
c9e358dfc4a8("driver-core:
remove conditionals around devicetree pointers").
Quoted 7 lines
Reviewed-by Dmitry Baryshkov <[email protected]>Signed-off-by Sui Jingfeng <[email protected]>---
v2: Update commit message--- drivers/gpu/drm/drm_debugfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Pushed to drm-misc-next:
235e60653f8d drm/debugfs: Drop conditionals around of_node pointers
-Doug