From patchwork Tue Jun 14 14:18:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 635286 X-Patchwork-Delegate: treding@nvidia.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3rTWwY5Pdtz9t0t for ; Wed, 15 Jun 2016 00:18:53 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=P9g5ApmB; dkim-atps=neutral Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752554AbcFNOSw (ORCPT ); Tue, 14 Jun 2016 10:18:52 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:33163 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751739AbcFNOSv (ORCPT ); Tue, 14 Jun 2016 10:18:51 -0400 Received: by mail-pa0-f67.google.com with SMTP id ts6so5741027pac.0; Tue, 14 Jun 2016 07:18:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=Mfnkv0nK2aVVCZOdK2ZSTnUReUfRZFDF/f6crsa7O14=; b=P9g5ApmBfLOofnmXXnvvz9eRRu9L2icKJ95lVrwfu8lSF2O2X2NJB9YyAxfVa8hUHc Q8+VVUikBDa1H0jFCi+Z5pnwnAcrAxI+rYd2vRf38u5p4hpD8W8QV5K4+Rn1dTnvm2fi Yed5P4+wFyfkKel+BnLyg/sc2cPaq6qmqoabCtt3SrBXAFaiDb3Tne7EraHlzW+8Yd60 tKLBTDLQwBDPuokxEq26jbPoEtdYT6eW6aqcsUMMwK9yrl58Z84hwLMgYTTD8PaxmN2E /SqcOyAExm9x2PhGC5xA85BzE+TwkdHubjzrSgtGeLbdmYfWlIgej+Xea/6mgWpsZHLv HWFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Mfnkv0nK2aVVCZOdK2ZSTnUReUfRZFDF/f6crsa7O14=; b=HomRT8xuRBkGPlivNxP79aAdi9f6HKyELYQk/mLxR33R1+sj1Tg+uYz3HR2aRZOOxf gOKOCNq3Ekvx5OU1uFi2Egxfwcn6P9Pi47JC5InnrPJv5AF2WfueO6kFCfFkAPcQLw75 14TISrhrJn0vmR1dfKaywtddD4dxyYo5VYuc/mzGJRN7jjKD8B1Wp1U2mK95fO2HbVIn Fz34LHp1nBAbt2N+1a4O3fx4EOqF6c9+DaBSzaHbx+ApVsR4AsMoCXeI75u8HjEEYbbd uHAWXzYqIrr6y0IWk0ZhsscoJ23s95f3yosr8b2Ugy2bITfZ5S3gvOdGg2LYC4afhR5l dlzw== X-Gm-Message-State: ALyK8tIladSLuPh8hdOu3BnodeO3tynjfLpP4mAjDV4oWHdFuedo2sw9dRu3Y4OVV4GvBg== X-Received: by 10.66.180.49 with SMTP id dl17mr29147944pac.131.1465913930775; Tue, 14 Jun 2016 07:18:50 -0700 (PDT) Received: from localhost (port-11930.pppoe.wtnet.de. [84.46.46.200]) by smtp.gmail.com with ESMTPSA id 66sm45885700pfb.64.2016.06.14.07.18.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Jun 2016 07:18:49 -0700 (PDT) From: Thierry Reding To: Vinod Koul Cc: Alexandre Courbot , Jon Hunter , dmaengine@vger.kernel.org, linux-tegra@vger.kernel.org Subject: [PATCH] dmaengine: tegra: Remove some whitespace funkiness Date: Tue, 14 Jun 2016 16:18:46 +0200 Message-Id: <20160614141846.22524-1-thierry.reding@gmail.com> X-Mailer: git-send-email 2.8.3 Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org From: Thierry Reding There are some places where whitespace is used in very funky ways. Fix the most serious ones to make the code easier on the eye. Signed-off-by: Thierry Reding Acked-by: Jon Hunter --- drivers/dma/tegra20-apb-dma.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/dma/tegra20-apb-dma.c b/drivers/dma/tegra20-apb-dma.c index 01e316f73559..80c490faca85 100644 --- a/drivers/dma/tegra20-apb-dma.c +++ b/drivers/dma/tegra20-apb-dma.c @@ -484,7 +484,7 @@ static void tegra_dma_configure_for_next(struct tegra_dma_channel *tdc, * load new configuration. */ tegra_dma_pause(tdc, false); - status = tdc_read(tdc, TEGRA_APBDMA_CHAN_STATUS); + status = tdc_read(tdc, TEGRA_APBDMA_CHAN_STATUS); /* * If interrupt is pending then do nothing as the ISR will handle @@ -905,7 +905,6 @@ static int get_transfer_param(struct tegra_dma_channel *tdc, unsigned long *apb_seq, unsigned long *csr, unsigned int *burst_size, enum dma_slave_buswidth *slave_bw) { - switch (direction) { case DMA_MEM_TO_DEV: *apb_addr = tdc->dma_sconfig.dst_addr; @@ -948,8 +947,8 @@ static struct dma_async_tx_descriptor *tegra_dma_prep_slave_sg( { struct tegra_dma_channel *tdc = to_tegra_dma_chan(dc); struct tegra_dma_desc *dma_desc; - unsigned int i; - struct scatterlist *sg; + unsigned int i; + struct scatterlist *sg; unsigned long csr, ahb_seq, apb_ptr, apb_seq; struct list_head req_list; struct tegra_dma_sg_req *sg_req = NULL; @@ -1062,7 +1061,7 @@ static struct dma_async_tx_descriptor *tegra_dma_prep_dma_cyclic( { struct tegra_dma_channel *tdc = to_tegra_dma_chan(dc); struct tegra_dma_desc *dma_desc = NULL; - struct tegra_dma_sg_req *sg_req = NULL; + struct tegra_dma_sg_req *sg_req = NULL; unsigned long csr, ahb_seq, apb_ptr, apb_seq; int len; size_t remain_len; @@ -1204,7 +1203,6 @@ static void tegra_dma_free_chan_resources(struct dma_chan *dc) { struct tegra_dma_channel *tdc = to_tegra_dma_chan(dc); struct tegra_dma *tdma = tdc->tdma; - struct tegra_dma_desc *dma_desc; struct tegra_dma_sg_req *sg_req; struct list_head dma_desc_list; @@ -1305,7 +1303,7 @@ static const struct tegra_dma_chip_data tegra148_dma_chip_data = { static int tegra_dma_probe(struct platform_device *pdev) { - struct resource *res; + struct resource *res; struct tegra_dma *tdma; int ret; int i;