[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <f4ac00433f64d0637f5bbcf19b631072bddad097.camel@perches.com>
Date: Sat, 13 Nov 2021 00:19:29 -0800
From: Joe Perches <joe@...ches.com>
To: Greg KH <gregkh@...uxfoundation.org>,
Liu Junqi <liujunqi@....edu.cn>
Cc: linux-staging@...ts.linux.dev,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] Staging: mt7621-dma: reindent to avoid '(' at the end
of line
On Sat, 2021-11-13 at 09:02 +0100, Greg KH wrote:
> On Sat, Nov 13, 2021 at 01:28:15PM +0800, Liu Junqi wrote:
> > Fixed a coding style issue.
This isn't really a fix, but instead is a change to make
the code more like typical coding style.
> > diff --git a/drivers/staging/mt7621-dma/hsdma-mt7621.c b/drivers/staging/mt7621-dma/hsdma-mt7621.c
[]
> > @@ -455,9 +455,9 @@ static void mtk_hsdma_issue_pending(struct dma_chan *c)
> > spin_unlock_bh(&chan->vchan.lock);
> > }
> >
> > -static struct dma_async_tx_descriptor *mtk_hsdma_prep_dma_memcpy(
> > - struct dma_chan *c, dma_addr_t dest, dma_addr_t src,
> > - size_t len, unsigned long flags)
> > +static struct dma_async_tx_descriptor
> > +*mtk_hsdma_prep_dma_memcpy(struct dma_chan *c, dma_addr_t dest, dma_addr_t src,
>
> No, this is now worse looking. The original was not pretty, but better
> than this.
More typical would be to have the return value on a separate line
as using * on the start of a line is poor form in the kernel.
static struct dma_async_tx_descriptor *
mtk_hsdma_prep_dma_memcpy(struct dma_chan *c, dma_addr_t dest, dma_addr_t src,
size_t len, unsigned long flags)
{
...
}
Powered by blists - more mailing lists