disp: msm: dp: update the definition of atomic_check function
Update the definition of the atomic_check function for DisplayPort connectors to align with the DRM upstream changes. Change-Id: Id942c8ef16ae773540c4bc7221e0b784354a527c Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
This commit is contained in:
@@ -498,18 +498,20 @@ void dp_connector_post_open(struct drm_connector *connector, void *display)
|
||||
|
||||
int dp_connector_atomic_check(struct drm_connector *connector,
|
||||
void *display,
|
||||
struct drm_connector_state *c_state)
|
||||
struct drm_atomic_state *a_state)
|
||||
{
|
||||
struct sde_connector *sde_conn;
|
||||
struct drm_connector_state *old_state;
|
||||
struct drm_connector_state *c_state;
|
||||
|
||||
if (!connector || !display)
|
||||
if (!connector || !display || a_state)
|
||||
return -EINVAL;
|
||||
|
||||
c_state = drm_atomic_get_new_connector_state(a_state, connector);
|
||||
old_state =
|
||||
drm_atomic_get_old_connector_state(c_state->state, connector);
|
||||
drm_atomic_get_old_connector_state(a_state, connector);
|
||||
|
||||
if (!old_state)
|
||||
if (!old_state || !c_state)
|
||||
return -EINVAL;
|
||||
|
||||
sde_conn = to_sde_connector(connector);
|
||||
|
Referens i nytt ärende
Block a user