Skip to content

Commit

Permalink
drm/plane: Make ->atomic_update() mandatory
Browse files Browse the repository at this point in the history
There is no use-case where it would be useful for drivers not to
implement this function and the transitional plane helpers already
require drivers to provide an implementation.

v2: add new requirement to kerneldoc

Reviewed-by: Daniel Vetter <[email protected]>
Signed-off-by: Thierry Reding <[email protected]>
  • Loading branch information
thierryreding committed Jan 27, 2015
1 parent 2cb207e commit 3cad4b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/drm_atomic_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ void drm_atomic_helper_commit_planes(struct drm_device *dev,

funcs = plane->helper_private;

if (!funcs || !funcs->atomic_update)
if (!funcs)
continue;

old_plane_state = old_state->plane_states[i];
Expand Down
2 changes: 1 addition & 1 deletion include/drm/drm_plane_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ extern int drm_crtc_init(struct drm_device *dev,
* @prepare_fb: prepare a framebuffer for use by the plane
* @cleanup_fb: cleanup a framebuffer when it's no longer used by the plane
* @atomic_check: check that a given atomic state is valid and can be applied
* @atomic_update: apply an atomic state to the plane
* @atomic_update: apply an atomic state to the plane (mandatory)
*
* The helper operations are called by the mid-layer CRTC helper.
*/
Expand Down

0 comments on commit 3cad4b6

Please sign in to comment.