From patchwork Tue Oct 9 05:47:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joel Fernandes X-Patchwork-Id: 10631949 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E6D86933 for ; Tue, 9 Oct 2018 05:50:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D81562875C for ; Tue, 9 Oct 2018 05:50:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CBDD228A46; Tue, 9 Oct 2018 05:50:53 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5018C2875C for ; Tue, 9 Oct 2018 05:50:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=FYsTjQCvp3W7uxBhDfmYQUk1ZwyvWgvDr+9wXJASknY=; b=bhsBUihHuzXFdv XCPU5c6zA3cIZ74A5oXPW6SC4GsKwte+1ke3syIHYjXRF9oSnqV22o3g8xVua+sTiYMJPAn0PMaLf BZiGVrWn2gUelc/hfazBUmjSn+xgIWEz9Nb2Hr+3C7uJfszD89pkI6Itehc7MtSAEXY9AtFoV12q5 11ScADnL0EW/uqQPS6fT/KJMAGha1A6drt4oom3J5tSo9/fTj4J/RXgTdDAAKktK7CRQvHs4io2uY jbYRAaDvLXuo21SwiNUg+0VlWYjZ0CHzAib+KRVh7yhRPLomk1vpYtdJoAkKD2LORm1NyGmqr90ED e2yt9kUwsBpuVzMwTyjw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9kun-0007yo-BH; Tue, 09 Oct 2018 05:50:41 +0000 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g9ksX-0005k2-D6 for linux-arm-kernel@lists.infradead.org; Tue, 09 Oct 2018 05:48:32 +0000 Received: by mail-pl1-x643.google.com with SMTP id f8-v6so251940plb.2 for ; Mon, 08 Oct 2018 22:48:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=3RJ/t1zGSm3UfjNE8WI2rEcf5JWxo9DPt72JtaWe1nc=; b=OAnb0LOLsek/oBjbd/RvEDOLwPnxFi8khlKDc7dtNbTDodJRo3hJcQ3+RGL0hlVXUS MeT3As4Err6QRj2bqtj2/AxIeyoiykDcUoyFJnxD0IPlsY0Zn3JArlnbHZKIUqgkjwcO DRNZhYjaAiDXac4oXb/whaGEkY6Vlt1BFkxbQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=3RJ/t1zGSm3UfjNE8WI2rEcf5JWxo9DPt72JtaWe1nc=; b=hG9255Y0aYylyEFqaXwTXDM9iTxSiOhsPMLaX7gFq5PUQ2rikgZyBxVdUfAQrxyHSe 5Zp2E4ZtqBR2wiVzLTkfvyf3aXtwg+bXaoZRZTu77pinXrq1SfnuGGD5eAgujHdOuvr3 cRZAycpCZKi9kDoViW7QMcXKgStw00M97q/nlh4Wv8+mzAC/tt7wzImQfw/oAVPnmM+y Q5uqjhPKPCk8L1XJ/ObsRfkPDzIef935RJ7XcgpOS/c5VonTpPb0ZIkJHomcAAaBZiVE BjIelnC2rajg8wd6ndzpQUnjOuSVYIHtHZL6eDZGs6ZDpgMobYR9m1ccyOElMY9nnLiV g+Xw== X-Gm-Message-State: ABuFfogsZGqwFW4FVt0Bjni10Elmpzi6L2I7RKn/sUXlRbLU/wi9vZEJ PKnuW5Hlf7eb0htGB4GvaSNShA== X-Google-Smtp-Source: ACcGV61hNIYMAw/1MXI+AVlnFVRjyLQUhIq8EqHXyT+gawh5a79FLEuK6O6RcAeZ/xrFtwE5xRCgKw== X-Received: by 2002:a17:902:d715:: with SMTP id w21-v6mr26370555ply.143.1539064090437; Mon, 08 Oct 2018 22:48:10 -0700 (PDT) Received: from joelaf.mtv.corp.google.com ([2620:0:1000:1601:3aef:314f:b9ea:889f]) by smtp.gmail.com with ESMTPSA id a15-v6sm16886234pff.8.2018.10.08.22.48.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Oct 2018 22:48:09 -0700 (PDT) From: "Joel Fernandes (Google)" To: stable@vger.kernel.org Subject: [PATCH 3/7] dmaengine: stm32-dma: fix typo and reported checkpatch warnings Date: Mon, 8 Oct 2018 22:47:48 -0700 Message-Id: <20181009054752.145978-4-joel@joelfernandes.org> X-Mailer: git-send-email 2.19.0.605.g01d371f741-goog In-Reply-To: <20181009054752.145978-1-joel@joelfernandes.org> References: <20181009054752.145978-1-joel@joelfernandes.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181008_224821_510746_820FFCA7 X-CRM114-Status: GOOD ( 13.13 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Torgue , Vinod Koul , gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, Pierre Yves MORDRET , "Joel Fernandes \(Google\)" , Maxime Coquelin , dmaengine@vger.kernel.org, Dan Williams , "moderated list:ARM/STM32 ARCHITECTURE" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Pierre Yves MORDRET Fix typo in a comment and solved reported checkpatch warnings. Signed-off-by: Pierre-Yves MORDRET Signed-off-by: Vinod Koul --- drivers/dma/stm32-dma.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/drivers/dma/stm32-dma.c b/drivers/dma/stm32-dma.c index fae7de54f00a..b64e14a83dec 100644 --- a/drivers/dma/stm32-dma.c +++ b/drivers/dma/stm32-dma.c @@ -60,7 +60,8 @@ #define STM32_DMA_SCR_PINC BIT(9) /* Peripheral increment mode */ #define STM32_DMA_SCR_CIRC BIT(8) /* Circular mode */ #define STM32_DMA_SCR_PFCTRL BIT(5) /* Peripheral Flow Controller */ -#define STM32_DMA_SCR_TCIE BIT(4) /* Transfer Cplete Int Enable*/ +#define STM32_DMA_SCR_TCIE BIT(4) /* Transfer Complete Int Enable + */ #define STM32_DMA_SCR_TEIE BIT(2) /* Transfer Error Int Enable */ #define STM32_DMA_SCR_DMEIE BIT(1) /* Direct Mode Err Int Enable */ #define STM32_DMA_SCR_EN BIT(0) /* Stream Enable */ @@ -918,7 +919,7 @@ static enum dma_status stm32_dma_tx_status(struct dma_chan *c, u32 residue = 0; status = dma_cookie_status(c, cookie, state); - if ((status == DMA_COMPLETE) || (!state)) + if (status == DMA_COMPLETE || !state) return status; spin_lock_irqsave(&chan->vchan.lock, flags); @@ -982,7 +983,7 @@ static void stm32_dma_desc_free(struct virt_dma_desc *vdesc) } static void stm32_dma_set_config(struct stm32_dma_chan *chan, - struct stm32_dma_cfg *cfg) + struct stm32_dma_cfg *cfg) { stm32_dma_clear_reg(&chan->chan_reg); @@ -1015,8 +1016,8 @@ static struct dma_chan *stm32_dma_of_xlate(struct of_phandle_args *dma_spec, cfg.stream_config = dma_spec->args[2]; cfg.features = dma_spec->args[3]; - if ((cfg.channel_id >= STM32_DMA_MAX_CHANNELS) || - (cfg.request_line >= STM32_DMA_MAX_REQUEST_ID)) { + if (cfg.channel_id >= STM32_DMA_MAX_CHANNELS || + cfg.request_line >= STM32_DMA_MAX_REQUEST_ID) { dev_err(dev, "Bad channel and/or request id\n"); return NULL; }