mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 15:18:19 +00:00
drm/connector: Pass a drm_connector_state to ->atomic_commit()
Other atomic hooks are passed state objects, let's change this one to be consistent. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Acked-by: Liviu Dudau <liviu.dudau@arm.com> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20180703075022.15138-3-boris.brezillon@bootlin.com
This commit is contained in:
parent
b82c1f8f78
commit
425132fdb1
2 changed files with 4 additions and 2 deletions
|
@ -1187,7 +1187,7 @@ static void drm_atomic_helper_commit_writebacks(struct drm_device *dev,
|
||||||
|
|
||||||
if (new_conn_state->writeback_job && new_conn_state->writeback_job->fb) {
|
if (new_conn_state->writeback_job && new_conn_state->writeback_job->fb) {
|
||||||
WARN_ON(connector->connector_type != DRM_MODE_CONNECTOR_WRITEBACK);
|
WARN_ON(connector->connector_type != DRM_MODE_CONNECTOR_WRITEBACK);
|
||||||
funcs->atomic_commit(connector, new_conn_state->writeback_job);
|
funcs->atomic_commit(connector, new_conn_state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -980,11 +980,13 @@ struct drm_connector_helper_funcs {
|
||||||
*
|
*
|
||||||
* This hook is to be used by drivers implementing writeback connectors
|
* This hook is to be used by drivers implementing writeback connectors
|
||||||
* that need a point when to commit the writeback job to the hardware.
|
* that need a point when to commit the writeback job to the hardware.
|
||||||
|
* The writeback_job to commit is available in
|
||||||
|
* &drm_connector_state.writeback_job.
|
||||||
*
|
*
|
||||||
* This callback is used by the atomic modeset helpers.
|
* This callback is used by the atomic modeset helpers.
|
||||||
*/
|
*/
|
||||||
void (*atomic_commit)(struct drm_connector *connector,
|
void (*atomic_commit)(struct drm_connector *connector,
|
||||||
struct drm_writeback_job *writeback_job);
|
struct drm_connector_state *state);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue