drm/sti: use vtg array instead of vtg_main/aux
This is more generic and more consistent with the other members of the sti_compositor struct. Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com> Acked-by: Vincent Abriou <vincent.abriou@st.com>
This commit is contained in:

committed by
Vincent Abriou

parent
ae2178503d
commit
ffdbb82ca4
@@ -650,8 +650,7 @@ static int sti_gdp_atomic_check(struct drm_plane *drm_plane,
|
||||
|
||||
if (!gdp->vtg) {
|
||||
/* Register gdp callback */
|
||||
gdp->vtg = mixer->id == STI_MIXER_MAIN ?
|
||||
compo->vtg_main : compo->vtg_aux;
|
||||
gdp->vtg = compo->vtg[mixer->id];
|
||||
if (sti_vtg_register_client(gdp->vtg,
|
||||
&gdp->vtg_field_nb, crtc)) {
|
||||
DRM_ERROR("Cannot register VTG notifier\n");
|
||||
|
Reference in New Issue
Block a user