Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp604148yba; Thu, 18 Apr 2019 06:42:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqztJj+0IoYyuqAmzD9JWEu3h8a58fDahIBM1q20B35pric0/zpbERGdbZVPiOx38g6PB5d7 X-Received: by 2002:a63:fa54:: with SMTP id g20mr85046847pgk.242.1555594935259; Thu, 18 Apr 2019 06:42:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555594935; cv=none; d=google.com; s=arc-20160816; b=iRJ0zitGxS1+Pw5BBa4T1WXM+uDyfzZJi/YoxppL5VUSMuXr7yDjwN5CBTlm1EsmuW a1D37nE8ECes1C6nMwkomw4pug28bPF/rYvFPn+pZbVekvitDZaDKjsIKHTXZkd6VzQz Pg7SQQQU3JAkjWbJHWDShWwBNlltEZ00CYGGkZtgT7YhZ32AqXq8/0oH93LhRftU4fin apJMdlLqOhs8x05gVhdiLLivlfNorIdzn9hyVtcOca64KGdJm12JpJGRwdPtz9y0qKl/ qMdQks+7+8YrBUP5TaI3flhhVwZamrtMR6yReDeFAJGANzrHJ2bXTD1JqfhysSwHXKX1 6rEg== 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=YKG/oAI694++8JRXZtngcXgor8B+hPayYQI865deteFw7pS/1fJzOpjHR0et4HMKcX QzAM5H+CAda2IFiZFpgXfjckM0e2yhEXeZCuEIy1VGnbe+rn5d080Q8I7qgWeNEotZie sh1lwcNQKyKu0MYUptthZFm5iBSopTSHQC10bhpba0COHKOGzvp9X9kAoEo201gljBa0 jMjf0SJA1NELz0gr5BcYG1PE7zBW1F2zgP1zHRWWFgiDATnwMomDDuVkC2g353hhvMZa ZR0rqz0UmNaepbirjXxQ7xzMBcJSRUtTJyqg597VxPL+MAcU1riosxYmXOQQtwqpeOQG hNQw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t9si1907371pgp.273.2019.04.18.06.42.00; Thu, 18 Apr 2019 06:42:15 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389324AbfDRNkd (ORCPT + 99 others); Thu, 18 Apr 2019 09:40:33 -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 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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(-) 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, -- 2.21.0