From patchwork Tue Nov 6 05:01:31 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: 10669623 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 218D91709 for ; Tue, 6 Nov 2018 05:02:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 120E029B8F for ; Tue, 6 Nov 2018 05:02:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 060462A0A4; Tue, 6 Nov 2018 05:02:05 +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 A6C7A29B8F for ; Tue, 6 Nov 2018 05:02:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729641AbeKFOZZ (ORCPT ); Tue, 6 Nov 2018 09:25:25 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:35109 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729608AbeKFOZZ (ORCPT ); Tue, 6 Nov 2018 09:25:25 -0500 Received: by mail-pg1-f195.google.com with SMTP id 32-v6so5274182pgu.2 for ; Mon, 05 Nov 2018 21:02:03 -0800 (PST) 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=dLTJjwlOqus4VJ2X2QZZEpyQjNlSulx0Gim1Vh811QxB/LzDqpG0UGiybmROP/KVdw 8X1yq/fkyF0Z53QDOdJH29pW3/vgj2YiBaUzHQEAWX9/puxZIYliQk5AdnsdHYZ1ITfM 3vDygDEQvRkyzkYmHAtH8Jw7mL70zqXv6oXRc= 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=STRbNx72aw3TpIn4k+bZJiJZPzhGvWaQBHG7PkaHflv0jHZ2VnZx9mPdTEVW+coYGr yUolsuhflCujvFU0Bb1mCh2szCH58fJfRV97WXnUmKwnYcQfz5EVgZnFzOd2mFU5rl5A ricdeQ7Maj/94HrMdZRsibwCMgKF/scaHThWQ3qHYNuLe63QVGUtt+bvvRU7gQTYV91f EBwjPTVkpJJ9GwKxtiqZctZg/VmlZdRhh1fbnXtyyj+dJtWyJG2ibcsyOGqU1jogtaqJ XFrDbxW/jW+HAxOTKIMqxTF0qDDSwdV98HWbnTS3/FeczZqZ0Xm3T2mF/++9O3rKaiL/ lYTQ== X-Gm-Message-State: AGRZ1gKq1XI5OYle7xBZHdUgFT/k01GkKWp9j62o4AP0ZJGLdal27MLH GH8ttfxNcQ8UPXtSnroeQuO51g== X-Google-Smtp-Source: AJdET5eAfeXAc/DKkmUEwjEG2anuujwBBE03az/EulmT6pJnGWTbLeGY/PoVzcRlDXPFCl/mqp5o8Q== X-Received: by 2002:a62:302:: with SMTP id 2-v6mr9584532pfd.135.1541480523186; Mon, 05 Nov 2018 21:02:03 -0800 (PST) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.102]) by smtp.gmail.com with ESMTPSA id o7-v6sm55735416pfb.23.2018.11.05.21.01.59 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Nov 2018 21:02:02 -0800 (PST) From: Baolin Wang To: dan.j.williams@intel.com, vkoul@kernel.org, eric.long@unisoc.com Cc: broonie@kernel.org, baolin.wang@linaro.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH 1/7] dmaengine: sprd: Remove direction usage from struct dma_slave_config Date: Tue, 6 Nov 2018 13:01:31 +0800 Message-Id: <0eb7556e7d0a29c7d88e8b67b6228d1ffb332ea9.1541480353.git.baolin.wang@linaro.org> 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; }