From patchwork Wed Nov 13 09:22:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 179265 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9328029ilf; Wed, 13 Nov 2019 01:22:05 -0800 (PST) X-Google-Smtp-Source: APXvYqywjUdqA4vQpQon5p0IVCWDlvUfEG/iQmldU/mzvFvdcsOSgjPpg/EX5ro+g3+eVb7rsWtb X-Received: by 2002:a50:cd4a:: with SMTP id d10mr2403978edj.42.1573636925548; Wed, 13 Nov 2019 01:22:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573636925; cv=none; d=google.com; s=arc-20160816; b=JRPT+U0rSk/6kWXNY2ojVqtVV62X2QZfL8AIIl4eOls9vzj8HJwK6DEHX9HtTDYdfd ebEK2+pzz4ZdyaKQF3HVINfvNP0E5o9RTtYEfcwYDdgX3Xz1AmsA0tLeC+pEANn0EjuF lTlj569ljnYngnMS3swmsQm7aWNpJ1EsTWHkuKz1BT9PhcFLuziLbrU8fYLSMlmF/lIT y2lUZO8Bv46RBWUl3xR09dk45gzDWxLcexfDbS2zDdL3A8zZHJkKMbzAn5+4ILl+p2wT CeFwvaZMh+61bL98Vm/T/67MUeqvcsfdaUDt/1UBpbU8w7e/sggMKp351b4U7zPMFa5W +D2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7J9dO2iGLJeSsQJV9q1KwAwKui5gqNqfEb8754dKT7w=; b=pdjGg+afs4mhUfrbyhWhLbBvPLpM3hszqUz4HbwTjIM/VHguTVnre33z7T4wN1bY9r fbyVd3ZXvyYp3Jlb6dkS3ggi0Hdka278nI4RZfNBbCPB9lBAtAwtSLVyEcIyNPSWUgTD brd96Zkw/9gbMF8ULoZwUpNkWXkPvu9BeCNJHbMnLjaOqqoNydFBF+4WM4NpjgtVgaYv 25olBxmC6IckTthbkUnlt269iXVXr1OZ9qyvnoNxDNz16dfq9ncp4xFK4ltiZPDLgVGa yb7TZUUW4lxjDpcp5xagbWWhv0bCUCImguBIZliC2HFAK9+/QGLM72f0qofxE3u9ztO2 sEPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=NZ6mZRhQ; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h17si788639ejq.121.2019.11.13.01.22.04; Wed, 13 Nov 2019 01:22:05 -0800 (PST) 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=@ti.com header.s=ti-com-17Q1 header.b=NZ6mZRhQ; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727497AbfKMJWD (ORCPT + 26 others); Wed, 13 Nov 2019 04:22:03 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:54264 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727399AbfKMJV4 (ORCPT ); Wed, 13 Nov 2019 04:21:56 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAD9Lgvh056846; Wed, 13 Nov 2019 03:21:42 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573636902; bh=7J9dO2iGLJeSsQJV9q1KwAwKui5gqNqfEb8754dKT7w=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=NZ6mZRhQZmTg0Yt3cbGzmkys/diMbkoT3syjL4K84CyGaB0IYYgJLYg0V3UTMTk1S yHVbOCVFoVmdKL0jA6JDJyTn9C0WleWXJ+YoB+M8YPCu2g+7UH5HeZhaKRMshc7vIq 9J7/fSnYv9mbyHMpB26K54n6IT7fRc1YKq3owfws= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAD9LfBq030622; Wed, 13 Nov 2019 03:21:41 -0600 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Wed, 13 Nov 2019 03:21:23 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Wed, 13 Nov 2019 03:21:24 -0600 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAD9LJ1K056807; Wed, 13 Nov 2019 03:21:37 -0600 From: Peter Ujfalusi To: , , , CC: , , , , , , , , , , , Subject: [PATCH 4/4] i2c: tegra: Use dma_request_chan() directly for channel request Date: Wed, 13 Nov 2019 11:22:35 +0200 Message-ID: <20191113092235.30440-5-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191113092235.30440-1-peter.ujfalusi@ti.com> References: <20191113092235.30440-1-peter.ujfalusi@ti.com> MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org dma_request_slave_channel_reason() is: #define dma_request_slave_channel_reason(dev, name) \ dma_request_chan(dev, name) Signed-off-by: Peter Ujfalusi --- drivers/i2c/busses/i2c-tegra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki diff --git a/drivers/i2c/busses/i2c-tegra.c b/drivers/i2c/busses/i2c-tegra.c index c1683f9338b4..a98bf31d0e5c 100644 --- a/drivers/i2c/busses/i2c-tegra.c +++ b/drivers/i2c/busses/i2c-tegra.c @@ -413,7 +413,7 @@ static int tegra_i2c_init_dma(struct tegra_i2c_dev *i2c_dev) return 0; } - chan = dma_request_slave_channel_reason(i2c_dev->dev, "rx"); + chan = dma_request_chan(i2c_dev->dev, "rx"); if (IS_ERR(chan)) { err = PTR_ERR(chan); goto err_out; @@ -421,7 +421,7 @@ static int tegra_i2c_init_dma(struct tegra_i2c_dev *i2c_dev) i2c_dev->rx_dma_chan = chan; - chan = dma_request_slave_channel_reason(i2c_dev->dev, "tx"); + chan = dma_request_chan(i2c_dev->dev, "tx"); if (IS_ERR(chan)) { err = PTR_ERR(chan); goto err_out;