From patchwork Fri Aug 11 20:43:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9896517 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0840B60351 for ; Fri, 11 Aug 2017 20:43:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EE29428D00 for ; Fri, 11 Aug 2017 20:43:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E2DA228D05; Fri, 11 Aug 2017 20:43:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15A2328D00 for ; Fri, 11 Aug 2017 20:43:30 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 1DB232676D6; Fri, 11 Aug 2017 22:43:24 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 5C0AC2676D7; Fri, 11 Aug 2017 22:43:23 +0200 (CEST) Received: from mout.web.de (mout.web.de [212.227.15.4]) by alsa0.perex.cz (Postfix) with ESMTP id A35F9266D12 for ; Fri, 11 Aug 2017 22:43:21 +0200 (CEST) Received: from [192.168.1.2] ([77.181.164.13]) by smtp.web.de (mrweb003 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LiCrz-1dK9IW3oX5-00nThi; Fri, 11 Aug 2017 22:43:16 +0200 From: SF Markus Elfring To: adi-buildroot-devel@lists.sourceforge.net, alsa-devel@alsa-project.org, Jaroslav Kysela , Liam Girdwood , Mark Brown , Scott Jiang , Takashi Iwai References: Message-ID: <2c2fabf2-3238-ab23-4df8-d93c702ff51e@users.sourceforge.net> Date: Fri, 11 Aug 2017 22:43:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB X-Provags-ID: V03:K0:+wNTcWeVlxOfciMTyyoPa6d6uALPfLpfwGTUkd5z6siNdCaYlDg 474sUGAxdObI6/xOnGCuI9sEwwvmRj646IHLhYnHVh9g8ZjCAqNN7Zm/YkPPchQYq1khWsq on9tPb9Hhv259kRJ2pQRyV8ySTqTIzzrEMShmhsdo2Q+AFJZlJ7wB8w/Cu01yqd/Wh7R3+l UXAhdVdHwt5QjDXBT9aQg== X-UI-Out-Filterresults: notjunk:1; V01:K0:6zdN/6XcnQo=:xnR4RzhFNEdqulvOXEI2jX VSItfMucnhF3rIZfPuf+VwbGLidbJadme49EEbPXXfUW+ccJ1wA2LpfuEP9oyv7r9iJEkkX8V 6QYuzad8RdXV+dwYkfl2zf9UD5nG/eBD8q/oEcLN1hTILoH8BbHy5IDRAXbjh1peh220uEHNB snPey8QVuwlrAkpQSjdWF5BgPpyoB4gwPlKcOF256amHbgDHW8tCt4/pl7QHlGG12eCugEH5T tV7sQefuPi154AiyH3umdmgEhQi/Mv417Orj1Rh88bxLJRKrOsqLaFZmefJ/bgtZOTtXcAs5O WoBs4lfURuDgx64XCRF201NZUJ59Cc/3ZxHciv6tD+RWUPVXkoficxl7IldlPQHNB+383tzRP yIvyo0/5aACR2m6wvti1jWkTGtJVIJjNmvUC8nhEAKQXfoeSeqpYPyh/Nk14I2MKdVl3MU2T3 /cQABcygMeRpy5rOHpqudpEgs57ZuTGIc5YgPkQlpRC3GOR1qqf+x8gTcLaMsjcMfxHS4MOB5 gvMkBusxb8IbpC0zr2UP0ZI0LOQEcQM8MtslPYMLKNsL6HfS/f/zfIILvN+9VVS5ShhYOtMXV vkPkipWwHR2eMTQMSAz+jDhpoHhXncRfDHS3XbYqHH4JLlzzCD4XVbKo5cDT5R5CWIPdMcfxI mYt9+2fHGz4/YCbS6ehFaMZr2GYyXNEFbb6ktN0AnCRD4LQ/opJxUUgZl6gtzMnayzIJvhzVE F9djDVE1gFE1DUz5uGHCKpwt98zzVQaX5K4XZYTOaOXlOwZ8mMf374wpSyMbC8trfrc+OB7Yb qIAgzixHiafK5UWGo/mz4h2KXpf02mFS9JGaUnMOeEpL88L/EQ= Cc: kernel-janitors@vger.kernel.org, LKML Subject: [alsa-devel] [PATCH 3/3] ASoC: blackfin: Add some spaces for better code readability X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Fri, 11 Aug 2017 22:20:07 +0200 Use space characters at some source code places according to the Linux coding style convention. Signed-off-by: Markus Elfring --- sound/soc/blackfin/bf6xx-sport.c | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/sound/soc/blackfin/bf6xx-sport.c b/sound/soc/blackfin/bf6xx-sport.c index fcddebf2558c..d2caadfe7b6d 100644 --- a/sound/soc/blackfin/bf6xx-sport.c +++ b/sound/soc/blackfin/bf6xx-sport.c @@ -129,7 +129,7 @@ static void setup_desc(struct dmasg *desc, void *buf, int fragcount, for (i = 0; i < fragcount; ++i) { desc[i].next_desc_addr = &(desc[i + 1]); - desc[i].start_addr = (unsigned long)buf + i*fragsize; + desc[i].start_addr = (unsigned long)buf + i * fragsize; desc[i].cfg = cfg; desc[i].x_count = count; desc[i].x_modify = wdsize; @@ -138,7 +138,7 @@ static void setup_desc(struct dmasg *desc, void *buf, int fragcount, } /* make circular */ - desc[fragcount-1].next_desc_addr = desc; + desc[fragcount - 1].next_desc_addr = desc; } int sport_config_tx_dma(struct sport_device *sport, void *buf, @@ -148,7 +148,7 @@ int sport_config_tx_dma(struct sport_device *sport, void *buf, unsigned int cfg; dma_addr_t addr; - count = fragsize/sport->wdsize; + count = fragsize / sport->wdsize; if (sport->tx_desc) dma_free_coherent(NULL, sport->tx_desc_size, @@ -166,8 +166,7 @@ int sport_config_tx_dma(struct sport_device *sport, void *buf, cfg = DMAFLOW_LIST | DI_EN | compute_wdsize(sport->wdsize) | NDSIZE_6; setup_desc(sport->tx_desc, buf, fragcount, fragsize, - cfg|DMAEN, count, sport->wdsize); - + cfg | DMAEN, count, sport->wdsize); return 0; } EXPORT_SYMBOL(sport_config_tx_dma); @@ -179,7 +178,7 @@ int sport_config_rx_dma(struct sport_device *sport, void *buf, unsigned int cfg; dma_addr_t addr; - count = fragsize/sport->wdsize; + count = fragsize / sport->wdsize; if (sport->rx_desc) dma_free_coherent(NULL, sport->rx_desc_size, @@ -198,8 +197,7 @@ int sport_config_rx_dma(struct sport_device *sport, void *buf, | WNR | NDSIZE_6; setup_desc(sport->rx_desc, buf, fragcount, fragsize, - cfg|DMAEN, count, sport->wdsize); - + cfg | DMAEN, count, sport->wdsize); return 0; } EXPORT_SYMBOL(sport_config_rx_dma); @@ -226,7 +224,7 @@ static irqreturn_t sport_tx_irq(int irq, void *dev_id) static unsigned long status; status = get_dma_curr_irqstat(sport->tx_dma_chan); - if (status & (DMA_DONE|DMA_ERR)) { + if (status & (DMA_DONE | DMA_ERR)) { clear_dma_irqstat(sport->tx_dma_chan); SSYNC(); } @@ -241,7 +239,7 @@ static irqreturn_t sport_rx_irq(int irq, void *dev_id) unsigned long status; status = get_dma_curr_irqstat(sport->rx_dma_chan); - if (status & (DMA_DONE|DMA_ERR)) { + if (status & (DMA_DONE | DMA_ERR)) { clear_dma_irqstat(sport->rx_dma_chan); SSYNC(); }