From patchwork Thu Apr 18 13:38:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 162478 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp760971jan; Thu, 18 Apr 2019 06:40:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwQUBwrcAq/xjcRxeI3+egkHL2BApkiey9KyYzja1gXLsHdWQNSrWFvUymd0kkSbcjblltd X-Received: by 2002:a63:6988:: with SMTP id e130mr73163220pgc.150.1555594834171; Thu, 18 Apr 2019 06:40:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555594834; cv=none; d=google.com; s=arc-20160816; b=T1Ff3pKWiIP+uqxhJNh89hLcQn26kWVn5wLu/TnPYmvHkxE9tbjmgyllCTCdgNvhLA APlsH7B4R1EMF25E/7JIAYH/WqOexQ4R1Vg04+kArgGpMbxpAnOkfj1F63Z200Akc7gr k1t2+tY+PugB+Mkg5yNmZtk4/mpm5PZfVQ/rVb4DgRdqpAqqL8eyCywEFG839MWi2Vz3 iJ8r3MB4udGnIsXiV7D3ojtyFHKtGAE5XdZgO3N0cv7f5G1NDXR4e3TLuH2CmsHCThnn ro1zMfhOSovJosilnwCNTfU4bAeOO0+5/cxam5MwgqBMIIXQPvP5PTfXzVl9A4MHmLG7 qfPg== 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; bh=QvBTvlcMUhqg1UiQTIi51SGuba/7LbNVIDirnCdn/1k=; b=XTeE4zLe8hHtfoF4slrv3wZkkkWFYpCc2t9Uh6iKGP7m+wisgK58cYvgGtZU8FHci8 kpjfEztmmwPzvGuFMaNzTFs+vpZFZLvi+qPyQFE0mPGI1r97THWQNDzpmUMPXoJRwn5R PKnR8IVEWc+sLDgyuhTjXDWlTh+Ljx3BPP+ajid5aGmHr1v82ndFXgT+MaSL1ZEtX8Od T1sHEe3G9WKwm27bVwZzcpcAm0gWvp2Ty9LDVtd8l1kBQ8/fAX/8Ha+nRyw/FRTU+60z 1vAmMkUqBzc8YWBOn8TZEu2mUb1g9sBCaOcVT04i/g5hIonN80ps90fji7vJEmt7WNY6 5REg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l25si2384191pfi.9.2019.04.18.06.40.33; Thu, 18 Apr 2019 06:40:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389310AbfDRNkb (ORCPT + 3 others); Thu, 18 Apr 2019 09:40:31 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:33576 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389319AbfDRNkb (ORCPT ); Thu, 18 Apr 2019 09:40:31 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BC32480D; Thu, 18 Apr 2019 06:40:30 -0700 (PDT) Received: from e110176-lin.kfn.arm.com (e110176-lin.kfn.arm.com [10.50.4.178]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 506F93F5AF; Thu, 18 Apr 2019 06:40:29 -0700 (PDT) From: Gilad Ben-Yossef To: Herbert Xu , "David S. Miller" Cc: Ofir Drang , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 12/35] crypto: ccree: use proper callback completion api Date: Thu, 18 Apr 2019 16:38:47 +0300 Message-Id: <20190418133913.9122-13-gilad@benyossef.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190418133913.9122-1-gilad@benyossef.com> References: <20190418133913.9122-1-gilad@benyossef.com> MIME-Version: 1.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Use proper hash callback completion API instead of open coding it. Signed-off-by: Gilad Ben-Yossef --- drivers/crypto/ccree/cc_hash.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.21.0 diff --git a/drivers/crypto/ccree/cc_hash.c b/drivers/crypto/ccree/cc_hash.c index e824ab60b59c..8f15ce3deecd 100644 --- a/drivers/crypto/ccree/cc_hash.c +++ b/drivers/crypto/ccree/cc_hash.c @@ -286,7 +286,7 @@ static void cc_update_complete(struct device *dev, void *cc_req, int err) cc_unmap_req(dev, state, ctx); } - req->base.complete(&req->base, err); + ahash_request_complete(req, err); } static void cc_digest_complete(struct device *dev, void *cc_req, int err) @@ -306,7 +306,7 @@ static void cc_digest_complete(struct device *dev, void *cc_req, int err) cc_unmap_req(dev, state, ctx); } - req->base.complete(&req->base, err); + ahash_request_complete(req, err); } static void cc_hash_complete(struct device *dev, void *cc_req, int err) @@ -326,7 +326,7 @@ static void cc_hash_complete(struct device *dev, void *cc_req, int err) cc_unmap_req(dev, state, ctx); } - req->base.complete(&req->base, err); + ahash_request_complete(req, err); } static int cc_fin_result(struct cc_hw_desc *desc, struct ahash_request *req,