[PATCH] drm: Remove the struct drm_device platformdev field

Laurent Pinchart laurent.pinchart at ideasonboard.com
Sun Dec 18 20:24:43 UTC 2016


Hi Daniel,

On Sunday 18 Dec 2016 14:16:26 Daniel Vetter wrote:
> On Sun, Dec 18, 2016 at 12:39:16AM +0200, Laurent Pinchart wrote:
> > The field contains a pointer to the parent platform device of the DRM
> > device. As struct drm_device also contains a dev pointer to the struct
> > device embedded in the platform_device structure, the platformdev field
> > is redundant. Remove it and use the dev pointer directly.
> > 
> > Signed-off-by: Laurent Pinchart
> > <laurent.pinchart+renesas at ideasonboard.com>
> 
> Oh sweet.
> 
> Reviewed-by: Daniel Vetter <daniel.vetter at ffwll.ch>

Thanks. Now it's your turn for the struct pci_device pointer ;-)

> > ---
> > 
> >  drivers/gpu/drm/armada/armada_drv.c             | 3 +--
> >  drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 5 ++---
> >  drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 2 --
> >  drivers/gpu/drm/msm/mdp/mdp4/mdp4_kms.c         | 2 +-
> >  drivers/gpu/drm/msm/mdp/mdp5/mdp5_cfg.c         | 2 +-
> >  drivers/gpu/drm/msm/mdp/mdp5/mdp5_mdss.c        | 2 +-
> >  drivers/gpu/drm/msm/msm_drv.c                   | 1 -
> >  drivers/gpu/drm/nouveau/nouveau_drm.c           | 3 +--
> >  drivers/gpu/drm/sti/sti_drv.c                   | 2 --
> >  drivers/gpu/drm/tilcdc/tilcdc_drv.c             | 1 -
> >  include/drm/drmP.h                              | 1 -
> >  11 files changed, 7 insertions(+), 17 deletions(-)

-- 
Regards,

Laurent Pinchart



More information about the dri-devel mailing list