mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-31 06:14:39 +01:00
drm/bridge: Drop conditionals around of_node pointers
This patch is based on commit c9e358dfc4 ("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 <[email protected]>
Signed-off-by: Biju Das <[email protected]>
Reviewed-by: Douglas Anderson <[email protected]>
Reviewed-by: Laurent Pinchart <[email protected]>
Signed-off-by: Douglas Anderson <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
This commit is contained in:
1 parent
39e0b96d61
commit
d8dfccde27
1 file changed
+2
-2
@@ -32,6 +32,8 @@
|
||||
#include <drm/drm_mode_object.h>
|
||||
#include <drm/drm_modes.h>
|
||||
|
||||
struct device_node;
|
||||
|
||||
struct drm_bridge;
|
||||
struct drm_bridge_timings;
|
||||
struct drm_connector;
|
||||
@@ -716,10 +718,8 @@ struct drm_bridge {
|
||||
struct drm_encoder *encoder;
|
||||
/** @chain_node: used to form a bridge chain */
|
||||
struct list_head chain_node;
|
||||
#ifdef CONFIG_OF
|
||||
/** @of_node: device node pointer to the bridge */
|
||||
struct device_node *of_node;
|
||||
#endif
|
||||
/** @list: to keep track of all added bridges */
|
||||
struct list_head list;
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user