Noralf Trønnes <noralf@xxxxxxxxxxx> writes: > Use the new drm_gem_framebuffer_helper who's code was copied > from this helper. > > Signed-off-by: Noralf Trønnes <noralf@xxxxxxxxxxx> > --- > drivers/gpu/drm/drm_fb_cma_helper.c | 181 ++++++------------------------------ > 1 file changed, 30 insertions(+), 151 deletions(-) > > diff --git a/drivers/gpu/drm/drm_fb_cma_helper.c b/drivers/gpu/drm/drm_fb_cma_helper.c > index ade319d..e1befee 100644 > --- a/drivers/gpu/drm/drm_fb_cma_helper.c > +++ b/drivers/gpu/drm/drm_fb_cma_helper.c > @@ -250,12 +143,14 @@ EXPORT_SYMBOL_GPL(drm_fb_cma_create); > struct drm_gem_cma_object *drm_fb_cma_get_gem_obj(struct drm_framebuffer *fb, > unsigned int plane) > { > - struct drm_fb_cma *fb_cma = to_fb_cma(fb); > + struct drm_gem_object *gem; > > - if (plane >= 4) > + gem = drm_gem_fb_get_obj(fb, plane); > + if (!gem) > return NULL; > > - return fb_cma->obj[plane]; > + return to_drm_gem_cma_obj(gem); > + > } Stray whitespace. Other than that, Reviewed-by: Eric Anholt <eric@xxxxxxxxxx> Feel free to push vc4 and pl111 with this patch.
Attachment:
signature.asc
Description: PGP signature
_______________________________________________ dri-devel mailing list dri-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/dri-devel