From patchwork Wed Nov 13 09:24:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 179266 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp9329977ilf; Wed, 13 Nov 2019 01:24:06 -0800 (PST) X-Google-Smtp-Source: APXvYqzSKEBDWPSEQfS4HEESbFHLnRevrQtwLpP41T9/mz3EyjBGb5d8hAAs73Zu7UCnGh6J2B5V X-Received: by 2002:a17:906:3501:: with SMTP id r1mr1629286eja.301.1573637046616; Wed, 13 Nov 2019 01:24:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573637046; cv=none; d=google.com; s=arc-20160816; b=BUbeNIz9A9eSqJAM+DyWgBGzEk8FwSRa5brmbXL5bYp5feS8cLhOzNXXYMdtzzc6GE A4PM78PhYhiEcuZS9ntsWP7o77X9DDc5p1n9NCugshzZ40my2Manwx3xhWnfiMrzaG/g w7rcfdvSDLBNQUpGMwcttIXYBrdXKLDjC7b3Lb3saCLWqmwPCtcv+ZdbQM0I+xxpSUya Pg+wwumwJMF5PpcAKyR920n4MAnhkIo6CcW97IkoJANCWWTqf9/PXSDXreu7ydPjsnv+ +uWD5yCFqdPgYusXRjK2uV1E3HXPhmvBY2cR2w6Qlk/p6ZiKCTABPG0aT+664zIgtIvj 7xAg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=Pd7tbII3LTzmwqzjX5nu8oaCrrcLyiWtQxt68IJs78c=; b=YpjsmTiP3eLVHpjBgkEcO87XMNz8eCxDFPY27rZ/iJCIgtaMo4CPZ6RlyzQgCGfIZE KmSSR+oYFXMz39Z0gIvV3MUO2s+mQZSrK4nmuZ/o2mpwaLyx7ziFL4yM9TTcT+36Krtb abdfaQOny3aqy1v+aHTDaNC5ZQ1KnbGuVZLFK9geT48vIkiYO5DOH3SqgCjQnkw1qNda LLOLuAsQkMUjm77Y+tUSuaUWDDMplKO5t9eCYTuvU6oJvDOlRa/s4vZIgcgFuELiTr5T Lo7wMIX2cV4aYM5TyikfvcLe9zQvFdYcgRgtW/9yr6lCSePE5Dj5jq4y96rIec0AYa0/ WCIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=KLWj7D24; 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 i13si793093ejc.76.2019.11.13.01.24.06; Wed, 13 Nov 2019 01:24:06 -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=KLWj7D24; 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 S1727262AbfKMJYD (ORCPT + 26 others); Wed, 13 Nov 2019 04:24:03 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:45808 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726422AbfKMJYD (ORCPT ); Wed, 13 Nov 2019 04:24:03 -0500 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id xAD9Ni1Y116403; Wed, 13 Nov 2019 03:23:44 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1573637024; bh=Pd7tbII3LTzmwqzjX5nu8oaCrrcLyiWtQxt68IJs78c=; h=From:To:CC:Subject:Date; b=KLWj7D24kAV3aWTlGgcNMSxrOwHUtQLeIfmUwQLKlsAlpTmLNtKhcjIu3LpKrDaK7 Ft9W+z605lT6o0X7uWlNIcsA7/IjSoXt/dEm2aV5QrDPgGlPOkfJCA87C+DBGZuYBG 8ndM8luWeZ8IFCjEvfgAViiOY3rXC5Yiw4TlKmEA= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id xAD9Nhdq051974 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 13 Nov 2019 03:23:44 -0600 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE103.ent.ti.com (10.64.6.24) 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:23:22 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) 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:23:22 -0600 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id xAD9Nbnb065233; Wed, 13 Nov 2019 03:23:38 -0600 From: Peter Ujfalusi To: CC: , , , , , Subject: [PATCH] iio: buffer-dmaengine: Use dma_request_chan() directly for channel request Date: Wed, 13 Nov 2019 11:24:53 +0200 Message-ID: <20191113092453.30838-1-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.24.0 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/iio/buffer/industrialio-buffer-dmaengine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki Reviewed-by: Vinod Koul diff --git a/drivers/iio/buffer/industrialio-buffer-dmaengine.c b/drivers/iio/buffer/industrialio-buffer-dmaengine.c index bea4a75e92f1..b7b5a934e9b2 100644 --- a/drivers/iio/buffer/industrialio-buffer-dmaengine.c +++ b/drivers/iio/buffer/industrialio-buffer-dmaengine.c @@ -150,7 +150,7 @@ struct iio_buffer *iio_dmaengine_buffer_alloc(struct device *dev, if (!dmaengine_buffer) return ERR_PTR(-ENOMEM); - chan = dma_request_slave_channel_reason(dev, channel); + chan = dma_request_chan(dev, channel); if (IS_ERR(chan)) { ret = PTR_ERR(chan); goto err_free;