From patchwork Tue Sep 11 08:35:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vinod Koul X-Patchwork-Id: 146962 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3386278ljw; Tue, 11 Sep 2018 01:36:42 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZe+RsrGeZ3kGY6yO/8lupjeIJtzu2kTLABUZOZZ/5TMSrVq6j15nNGeJQ4lIbfbDD5sDTA X-Received: by 2002:a17:902:f209:: with SMTP id gn9mr25907588plb.173.1536655002593; Tue, 11 Sep 2018 01:36:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536655002; cv=none; d=google.com; s=arc-20160816; b=TQejbb/gS9RoO8uniERcwlm7vYIXedExebKTUq2QICedlB+rP4FEf2K3JT+c1+KWmp n/kGwyHB8Fy799gK9YtCBlFHJ6ddh4ZTLIpKCyzzfmVj20/rR+f/iGiEjtuyZrpEBiTA y5K7i7hysSILsItAhX4+2uXr+iq5j6ue6vxLCynGAmpF6IStZ9KsOiON3ziNtIg0XQ0G hFWSRbnOmfcaUrmXRUIPA+Ck2b8L1+J2ege6XmXfU3g3BRxVIVo06QyBQo6/gyen9obT 0F9kcBmZwmoaCcYFFm+vF/U/LwKHAA6PbWSCjNce3y3bp7Ysaq/uZJWGiMgGWk/955jB 57cw== 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:message-id:date :subject:cc:to:from:dkim-signature; bh=q2ts/uwLkkCpQZbM8+KNxNRIOyJsbJ0WPIKLRDNFLTo=; b=UdE1G3ly0dLEUiisNgK4GLdI2WpxsIifUNitjQ/hOXBiehXpg+GkAOKe9NLdrpP3zF +QT2RbAAJG/XnlPQtREnXqCWEkiXcxz2M+bzCWQ8sekmwtX/NJ4NlkNxldaB73R4cc7D FgtGK5BGDNxNd0gY4YcmH6svqLroUNV1xKO9c2/Yq7dCrDa79Ad68nA8Eg4MbsCVxhGt kZvvom0NbD5nq16XcGGbdUyItlwxR+brSA6Pek8ezAXQWIyv8fimQNz41dbmYf4nt7mG NNcscKt2KEROMhKz/TP3UhEEKAt1Ih8rqH1XdHvmblL/pZGxhWJ6eonbHbXjMzGN2l4O Xt3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lySSBfzL; spf=pass (google.com: best guess record for domain of dmaengine-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=dmaengine-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 21-v6si19613906pfy.169.2018.09.11.01.36.42; Tue, 11 Sep 2018 01:36:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dmaengine-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=@kernel.org header.s=default header.b=lySSBfzL; spf=pass (google.com: best guess record for domain of dmaengine-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=dmaengine-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726569AbeIKNe4 (ORCPT + 3 others); Tue, 11 Sep 2018 09:34:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:52292 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726387AbeIKNe4 (ORCPT ); Tue, 11 Sep 2018 09:34:56 -0400 Received: from localhost.localdomain (unknown [171.76.126.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 13D6220880; Tue, 11 Sep 2018 08:36:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1536654999; bh=OaEXva+QICvlkf6bownaIvps4Nr2nG1uFdNNqtz4mY8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lySSBfzLOFrj8I9yeqFlkx1783YVuQm8Uj8hcbcKtFyhBxijwyGIG2K1h1ZjQEPyq Ew08poAuwBWH9ArLpdOSEGtZw1c4ZlAZVBorXCR3jN5Tqt0Sly/ba9X4TFqeYbNv8P JvnP7QzDK0t+xsZI1eCC0izXyk/EnqCsANKmB0V0= From: Vinod Koul To: dmaengine@vger.kernel.org Cc: Vinod Koul , Andy Shevchenko Subject: [PATCH 07/12] dmaengine: hsu: remove dma_slave_config direction usage Date: Tue, 11 Sep 2018 14:05:31 +0530 Message-Id: <20180911083536.16482-8-vkoul@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180911083536.16482-1-vkoul@kernel.org> References: <20180911083536.16482-1-vkoul@kernel.org> Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org dma_slave_config direction was marked as deprecated quite some time back, remove the usage from this driver so that the field can be removed Signed-off-by: Vinod Koul --- CC: Andy Shevchenko drivers/dma/hsu/hsu.c | 4 ---- 1 file changed, 4 deletions(-) -- 2.14.4 Acked-by: Andy Shevchenko diff --git a/drivers/dma/hsu/hsu.c b/drivers/dma/hsu/hsu.c index 202ffa9f7611..e06f20272fd7 100644 --- a/drivers/dma/hsu/hsu.c +++ b/drivers/dma/hsu/hsu.c @@ -348,10 +348,6 @@ static int hsu_dma_slave_config(struct dma_chan *chan, { struct hsu_dma_chan *hsuc = to_hsu_dma_chan(chan); - /* Check if chan will be configured for slave transfers */ - if (!is_slave_direction(config->direction)) - return -EINVAL; - memcpy(&hsuc->config, config, sizeof(hsuc->config)); return 0;