[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190424165751.GB21067@ravnborg.org>
Date: Wed, 24 Apr 2019 18:57:51 +0200
From: Sam Ravnborg <sam@...nborg.org>
To: John Stultz <john.stultz@...aro.org>
Cc: Xu YiPing <xuyiping@...ilicon.com>,
David Airlie <airlied@...ux.ie>,
Chen Feng <puck.chen@...ilicon.com>,
lkml <linux-kernel@...r.kernel.org>,
dri-devel <dri-devel@...ts.freedesktop.org>,
Xinliang Liu <z.liuxinliang@...ilicon.com>,
Xinwei Kong <kong.kongxinwei@...ilicon.com>,
Rongrong Zou <zourongrong@...il.com>
Subject: Re: [PATCH 12/25] drm: kirin: Reanme dc_ops to kirin_drm_data
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 <xuyiping@...ilicon.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.liuxinliang@...ilicon.com>
> > Cc: Rongrong Zou <zourongrong@...il.com>
> > Cc: Xinwei Kong <kong.kongxinwei@...ilicon.com>
> > Cc: Chen Feng <puck.chen@...ilicon.com>
> > Cc: David Airlie <airlied@...ux.ie>
> > Cc: Daniel Vetter <daniel@...ll.ch>
> > Cc: dri-devel <dri-devel@...ts.freedesktop.org>
> > Signed-off-by: Xu YiPing <xuyiping@...ilicon.com>
> > [jstultz: reworded commit message]
> > Signed-off-by: John Stultz <john.stultz@...aro.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
Powered by blists - more mailing lists