Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1565985imm; Fri, 28 Sep 2018 22:50:33 -0700 (PDT) X-Google-Smtp-Source: ACcGV62rpDWNlwp4cXtgNRrc2eKnhv5iAjtvfEjZgvbV36n4v/fxtZRwlLLh5oba22HTIAxE1pED X-Received: by 2002:a17:902:4403:: with SMTP id k3-v6mr1666446pld.243.1538200233487; Fri, 28 Sep 2018 22:50:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538200233; cv=none; d=google.com; s=arc-20160816; b=z/HyKD8P9sozjJwpyHnGvFOZD/3j2wyuuN9C5erl4/7f6Zh6pJsU2mia1fJRp71F3W 3aJ+px2t57LhtzVurdA2h+eXiwDJU9r1fxdMJevkosrZJaVELeKB3TV4ksGNWS1qKD6m AriWV664sEU2aErpht4zbVQDz1PDOvbo2OshkIJUo238vMXFCJuZs7sqKlWE+g/7HGSd ML2E1Xhc0Dv7e/CAjIcHs1Hi07NcajQkqy4ioe8ApIWo6vVB7DwJlqTbbQZ3duaISrkO d5iOvSxjrWgMPWT6VEkQ0DgTcoemh+KK/cvSE3x7xEdNrNuIgnBGXYLvO6vYq6O/FIZn RO6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=ESGwK71J9MVIx0LSTHlmPcydTEacdFoGT0gjQtbEMzs=; b=p1rpyj3YgBfLZIVqK6LqXzZdRkBxdQo8U4BdvBpHLKd4A1SLkfDbnMORyGefZBfzTE Gge4NSplNYiLyjCX6HK1feBNR6DE0sMg4U7vOdOC1XN/RRkw287U3OBxu3kTSbzPkNGx swPGpfIfnXzjaRtNBV2w/uoW0HkE9tAkyeL+XSh6izaQRQ86EbEpW7hfCuCaDWa1w4dm a/0YPosaeh3EnR+cUXgtzaljyPEzZItrO4h+m7uoF/Vsp3Yuy68NtYCBFTsosmz1Z3R0 STDGVeUN2klsbtwK9Z4N7Zii0/mpX/RQNr35LNR5lX24g3vIilJIIrAWkVMDGkq34K9W VGVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gNEOE6eC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 29-v6si6776463pgz.215.2018.09.28.22.50.14; Fri, 28 Sep 2018 22:50:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gNEOE6eC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727496AbeI2MRG (ORCPT + 99 others); Sat, 29 Sep 2018 08:17:06 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:46084 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727407AbeI2MRG (ORCPT ); Sat, 29 Sep 2018 08:17:06 -0400 Received: by mail-pg1-f196.google.com with SMTP id b129-v6so5860585pga.13 for ; Fri, 28 Sep 2018 22:50:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=ESGwK71J9MVIx0LSTHlmPcydTEacdFoGT0gjQtbEMzs=; b=gNEOE6eCXEHf3IE6h9XVE5pgCYM1vzkbspyms3szdjJJ+l/Uq8cZB4tj/PaIUo4iEe Fy4S1kh/qfy9w+0/t5csp252mRMKvC8gIWadoxyMe3xLkyRXSNZjqphoThcbDOB2cPjl i1CULVEXrpsc66q3rF7biFV6/30cJ876Jo/CU= 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:in-reply-to:references; bh=ESGwK71J9MVIx0LSTHlmPcydTEacdFoGT0gjQtbEMzs=; b=j/TC7CHcTxAuJ2P5VJ2gKIKhYfPpvJX2hUKsDEaGuZIPYmyA/WfJV8+kDZR5AzzXVu cpIGQ3Meoq7Xc4defEvNxRtR3gkgrRAynkv4iNjcGCkDIjHJW4+W4DHHawp/T/NfryPt UvV7FPJDtX6Jrcn284pQ3oqQhXuzr29KY5ShzeSu6dEC6hwM6fvhq34kahG+beQE5AUN aDoXp5jMCqzCoAXTXlDGc6Bhy/cHdmQdZl4d8vZG/XLKm7rqylUIeKcmt7hSxWcIc0hL c1S9nnVU041ZeSBKvi9R2T/uaZvtbS6u7zO4izAW2FTWiLGrLBu6LkvbSJahAyQwGS1i yIkQ== X-Gm-Message-State: ABuFfoiWo4OxbFUUu9MjcEvFdBSyKHca4GTbYLxudHB7TpikM//MjMdv L3+hcRkjeqO3of49rVUiEBdAfYN7qyb/rg== X-Received: by 2002:a63:8442:: with SMTP id k63-v6mr1583392pgd.388.1538200201941; Fri, 28 Sep 2018 22:50:01 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id i80-v6sm11118049pfi.87.2018.09.28.22.49.58 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 28 Sep 2018 22:50:00 -0700 (PDT) From: Baolin Wang To: dan.j.williams@intel.com, vkoul@kernel.org, eric.long@spreadtrum.com Cc: broonie@kernel.org, baolin.wang@linaro.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/7] dmaengine: sprd: Remove direction usage from struct dma_slave_config Date: Sat, 29 Sep 2018 13:48:59 +0800 Message-Id: X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The direction field of struct dma_slave_config was marked deprecated, thus remove the usage. Signed-off-by: Baolin Wang --- drivers/dma/sprd-dma.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/dma/sprd-dma.c b/drivers/dma/sprd-dma.c index 38d4e4f..c226dc93 100644 --- a/drivers/dma/sprd-dma.c +++ b/drivers/dma/sprd-dma.c @@ -847,9 +847,6 @@ static int sprd_dma_slave_config(struct dma_chan *chan, struct sprd_dma_chn *schan = to_sprd_dma_chan(chan); struct dma_slave_config *slave_cfg = &schan->slave_cfg; - if (!is_slave_direction(config->direction)) - return -EINVAL; - memcpy(slave_cfg, config, sizeof(*config)); return 0; } -- 1.7.9.5