drm/bridge: Drop conditionals around of_node pointers
authorBiju Das <biju.das.jz@bp.renesas.com>
Thu, 31 Aug 2023 08:09:36 +0000 (09:09 +0100)
committerDouglas Anderson <dianders@chromium.org>
Wed, 6 Sep 2023 15:32:37 +0000 (08:32 -0700)
commitd8dfccde2709de4327c3d62b50e5dc012f08836f
treeb98917ba0c80b0e15b2736c070c9574c9d5cdd0b
parent39e0b96d61b6f5ad880d9953dc2b4c5b3ee145b3
drm/bridge: Drop conditionals around of_node pointers

This patch is based on commit c9e358dfc4a8 ("driver-core: remove
conditionals around devicetree pointers").

Having conditional around the of_node pointer of the drm_bridge
structure turns out to make driver code use ugly #ifdef blocks. Drop the
conditionals to simplify drivers. While this slightly increases the size
of struct drm_bridge on non-OF system, the number of bridges used today
and foreseen tomorrow on those systems is very low, so this shouldn't be
an issue.

So drop #if conditionals by adding struct device_node forward declaration.

Suggested-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230831080938.47454-3-biju.das.jz@bp.renesas.com
include/drm/drm_bridge.h