Noralf Trønnes <[email protected]> writes: > Use the new drm_gem_framebuffer_helper who's code was copied > from this helper. > > Signed-off-by: Noralf Trønnes <[email protected]> > --- > 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 <[email protected]>
Feel free to push vc4 and pl111 with this patch.
signature.asc
Description: PGP signature
_______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
