diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2016-02-26 04:51:06 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-03-29 02:34:05 -0400 |
commit | 11622d4c638ad3dd229e39064d0e5726c4f3b454 (patch) | |
tree | 5e5861b4e5c89e6c07673b46a6f90c4b5ecd8bb9 /include/drm | |
parent | b47bcb93bbf201e9c5af698945755efeb60c0bc8 (diff) |
drm: bridge: Make (pre/post) enable/disable callbacks optional
Instead of forcing bridges to implement empty callbacks make them all
optional.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1456480266-7904-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com
Acked-by: Archit Taneja <architt@codeaurora.org>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_crtc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index b10eba23a744..f048a7b06529 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -1596,6 +1596,8 @@ struct drm_bridge_funcs { | |||
1596 | * | 1596 | * |
1597 | * The bridge can assume that the display pipe (i.e. clocks and timing | 1597 | * The bridge can assume that the display pipe (i.e. clocks and timing |
1598 | * signals) feeding it is still running when this callback is called. | 1598 | * signals) feeding it is still running when this callback is called. |
1599 | * | ||
1600 | * The disable callback is optional. | ||
1599 | */ | 1601 | */ |
1600 | void (*disable)(struct drm_bridge *bridge); | 1602 | void (*disable)(struct drm_bridge *bridge); |
1601 | 1603 | ||
@@ -1612,6 +1614,8 @@ struct drm_bridge_funcs { | |||
1612 | * The bridge must assume that the display pipe (i.e. clocks and timing | 1614 | * The bridge must assume that the display pipe (i.e. clocks and timing |
1613 | * singals) feeding it is no longer running when this callback is | 1615 | * singals) feeding it is no longer running when this callback is |
1614 | * called. | 1616 | * called. |
1617 | * | ||
1618 | * The post_disable callback is optional. | ||
1615 | */ | 1619 | */ |
1616 | void (*post_disable)(struct drm_bridge *bridge); | 1620 | void (*post_disable)(struct drm_bridge *bridge); |
1617 | 1621 | ||
@@ -1640,6 +1644,8 @@ struct drm_bridge_funcs { | |||
1640 | * will not yet be running when this callback is called. The bridge must | 1644 | * will not yet be running when this callback is called. The bridge must |
1641 | * not enable the display link feeding the next bridge in the chain (if | 1645 | * not enable the display link feeding the next bridge in the chain (if |
1642 | * there is one) when this callback is called. | 1646 | * there is one) when this callback is called. |
1647 | * | ||
1648 | * The pre_enable callback is optional. | ||
1643 | */ | 1649 | */ |
1644 | void (*pre_enable)(struct drm_bridge *bridge); | 1650 | void (*pre_enable)(struct drm_bridge *bridge); |
1645 | 1651 | ||
@@ -1657,6 +1663,8 @@ struct drm_bridge_funcs { | |||
1657 | * signals) feeding it is running when this callback is called. This | 1663 | * signals) feeding it is running when this callback is called. This |
1658 | * callback must enable the display link feeding the next bridge in the | 1664 | * callback must enable the display link feeding the next bridge in the |
1659 | * chain if there is one. | 1665 | * chain if there is one. |
1666 | * | ||
1667 | * The enable callback is optional. | ||
1660 | */ | 1668 | */ |
1661 | void (*enable)(struct drm_bridge *bridge); | 1669 | void (*enable)(struct drm_bridge *bridge); |
1662 | }; | 1670 | }; |