[Freedreno] [PATCH 1/4] gpu: Use dev_get_drvdata()

Emil Velikov emil.l.velikov at gmail.com
Mon Jul 1 16:56:02 UTC 2019


On Mon, 1 Jul 2019 at 13:37, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>
> Hi Fuqian,
>
> On Mon, 1 Jul 2019 at 08:13, Fuqian Huang <huangfq.daxian at gmail.com> wrote:
> >
> > Using dev_get_drvdata directly.
> >
> > Signed-off-by: Fuqian Huang <huangfq.daxian at gmail.com>
> > ---
> >  drivers/gpu/drm/msm/adreno/adreno_device.c      |  6 ++----
> >  drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c         | 13 +++++--------
> >  drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c        |  6 ++----
> >  drivers/gpu/drm/msm/dsi/dsi_host.c              |  6 ++----
> >  drivers/gpu/drm/msm/msm_drv.c                   |  3 +--
> >  drivers/gpu/drm/omapdrm/displays/panel-dsi-cm.c | 15 +++++----------
> >  drivers/gpu/drm/panfrost/panfrost_device.c      |  6 ++----
> As far as i can see the patch is spot on, thanks for that.
>
> Can you split this in three since it covers 3 separate drivers.

Quick grep for "platform_get_drvdata(to_platform_device" showed a few
instances through various drivers - exynos, msm, etc.
If you can address those with v2 that would be great.

-Emil


More information about the Freedreno mailing list