From patchwork Sat Sep 29 05:48:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "(Exiting) Baolin Wang" X-Patchwork-Id: 10620627 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 8E43915E8 for ; Sat, 29 Sep 2018 05:50:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8048D2AFA4 for ; Sat, 29 Sep 2018 05:50:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 71C3F2AFF5; Sat, 29 Sep 2018 05:50:06 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1F1792AFA4 for ; Sat, 29 Sep 2018 05:50:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727493AbeI2MRG (ORCPT ); Sat, 29 Sep 2018 08:17:06 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:34324 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727471AbeI2MRG (ORCPT ); Sat, 29 Sep 2018 08:17:06 -0400 Received: by mail-pf1-f195.google.com with SMTP id k19-v6so5687588pfi.1 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=q26bGtlxwq1FCRKdDV8szWUqJ6Fjz0HoT55/Lr+vxnMRiRyRZb4A++5X5i9OaTSWVE k7xFsy9P5/RbwCGOE+18Lg61ESd+f1DAPZkD9G76pq8QFcKHpJ8DP2Mrd8RArRg0rkhk 52CVCoVSDvINhfwMaVzEqtjdDFeYE5RWOh+AJoP2qCxA+e7yoDY/JWUUPEPRhKMPYZqE b+pQ084xNS+nJ3yxHvwANua9wVNImOr89aJq3CjYmIio32f8vOQ1SuBWilgb9Q1COUjO dR0roN2lPsSRNFCSqNXpSIIaCkDtLWpcfYmnFIKIk5iz9zVEnBpVsE0nL1zrwGZ+dAx9 j5UA== X-Gm-Message-State: ABuFfohdhZt/QatjNisandoJezJurMKgGSqcWJn2AxWDkVItnWNl0gYz yww8p/vmCZsEyXb7XJYf7AzDcQ== X-Google-Smtp-Source: ACcGV63QP6TcYjR8U7GOSTKKwZ7h+ABOrRt6RAhZd0q0YD6b3GOFtLVnMRgodR4d0rT4WStcM6SdZA== 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: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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; }