Hi again. On Wed, Apr 24, 2019 at 06:52:26PM +0200, Sam Ravnborg wrote: > Hi John. > > On Tue, Apr 23, 2019 at 04:20:43PM -0700, John Stultz wrote: > > From: Xu YiPing <xuyip...@hisilicon.com> > > > > As part of refactoring the kirin driver to better support > > different hardware revisions, this patch renames the > > struct kirin_dc_ops to struct kirin_drm_data and cleans > > up the related variable names. > > > > Cc: Xinliang Liu <z.liuxinli...@hisilicon.com> > > Cc: Rongrong Zou <zourongr...@gmail.com> > > Cc: Xinwei Kong <kong.kongxin...@hisilicon.com> > > Cc: Chen Feng <puck.c...@hisilicon.com> > > Cc: David Airlie <airl...@linux.ie> > > Cc: Daniel Vetter <dan...@ffwll.ch> > > Cc: dri-devel <dri-devel@lists.freedesktop.org> > > Signed-off-by: Xu YiPing <xuyip...@hisilicon.com> > > [jstultz: reworded commit message] > > Signed-off-by: John Stultz <john.stu...@linaro.org> > > --- > > drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 2 +- > > drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c | 16 ++++++++-------- > > drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.h | 4 ++-- > > 3 files changed, 11 insertions(+), 11 deletions(-) > > > > diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c > > b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c > > index 69604ad..221bfbb 100644 > > --- a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c > > +++ b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c > > @@ -1055,7 +1055,7 @@ static void ade_drm_cleanup(struct platform_device > > *pdev) > > { > > } > > > > -const struct kirin_dc_ops ade_dc_ops = { > > +struct kirin_drm_data ade_driver_data = { > > .init = ade_drm_init, > > .cleanup = ade_drm_cleanup > > }; > This rename does not help readability. An _ops often/always hold > function pointers. Where _data hold data. > So it looks wrong to name this _data. Reading later pathes the rename makes good sense, so disregard this.
Sam _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel