From patchwork Tue Dec 12 14:52:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 121534 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4223419qgn; Tue, 12 Dec 2017 06:55:23 -0800 (PST) X-Google-Smtp-Source: ACJfBoslXm92K+J0/Ikuv71ddZKWpugWJ2wMjp6Bu144CSZOQHi4BEgf2i7TFwg+FsYExemzFclQ X-Received: by 10.98.133.65 with SMTP id u62mr2560859pfd.22.1513090523780; Tue, 12 Dec 2017 06:55:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513090523; cv=none; d=google.com; s=arc-20160816; b=eLqXuwc/06+S7jeDvGWXcBkMpExaArohui7um3BVZr13FoC/VrZSY0Ib4i3S2FUBRb a8xzKt8AbrmJKgF+yXCN0pbx6fXH/G427iuqCfCg70HEQ5RTpV5sZUIfXZ+ky50yQKgg /n5PVEFGhYp7VLPkfxNicq85tp8sKsR1qiim6hffdKDdb0ZvVD58iXoeQKAvQUsuuO1G TxgYy5qE3KBELFi9pWW0L8jyaT2U2T8syDhAf5V1ZAYpoaPM98f9RRLvyk/xPG9DW97/ puLMQW31KbTJZAyLtX8Bj8uDE9x0cbCyzYwLul75/J3UOlSohh55727L/MLoai41Ehue cofw== 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:arc-authentication-results; bh=5kjvTnOljv5FfyfOiN4SPhj02pvByTTO1onj9Xu6YlE=; b=SJSi8yUiEUj/Xe8G6j3jKoAfMaDloBv81CltaGAFOKOXvQimxj9vsj/Hi5Vl1w/w52 3lJaFBVhmF/X4g3DPIlZg40ynvIXhwSjP8tJfmruSVdc6m7qdkdUL0zxGqTA3JxMJBjF Egcw1Gz/SLESDEtgh80iBLVIiR1cD5KCDXf4nWM4ZwvauzEO8UePPeCsG02JVhBZ3Y9F rk3cKhCg1t9F6tMSLi3EndPkkm4QY6B0ax8qhCdXn5gqWITyqHnmR+gGcbwQM+wax3Xq MvuMYfpOmj7T2j+eD77EsXfnh/m8PSYEHWfxMKoxyemm+r/SBHyAfnZSeDnojrqRbDc8 JTJw== 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 r82si6861696pfi.277.2017.12.12.06.55.23; Tue, 12 Dec 2017 06:55:23 -0800 (PST) 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 S1752435AbdLLOzW (ORCPT + 1 other); Tue, 12 Dec 2017 09:55:22 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:45144 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752437AbdLLOzQ (ORCPT ); Tue, 12 Dec 2017 09:55:16 -0500 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 D1F7A1529; Tue, 12 Dec 2017 06:55:15 -0800 (PST) Received: from sugar.kfn.arm.com (unknown [10.45.48.196]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 58F103F318; Tue, 12 Dec 2017 06:55:13 -0800 (PST) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Ofir Drang , linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 13/24] staging: ccree: fix cipher func def coding style Date: Tue, 12 Dec 2017 14:52:59 +0000 Message-Id: <1513090395-7938-14-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513090395-7938-1-git-send-email-gilad@benyossef.com> References: <1513090395-7938-1-git-send-email-gilad@benyossef.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Fix cipher functions definition indentation according to coding style guide lines for better code readability Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_cipher.c | 38 +++++++++++++++----------------------- 1 file changed, 15 insertions(+), 23 deletions(-) -- 2.7.4 diff --git a/drivers/staging/ccree/ssi_cipher.c b/drivers/staging/ccree/ssi_cipher.c index d7687a4..0b464d8 100644 --- a/drivers/staging/ccree/ssi_cipher.c +++ b/drivers/staging/ccree/ssi_cipher.c @@ -435,14 +435,11 @@ static int cc_cipher_setkey(struct crypto_ablkcipher *atfm, const u8 *key, return 0; } -static void -cc_setup_cipher_desc( - struct crypto_tfm *tfm, - struct blkcipher_req_ctx *req_ctx, - unsigned int ivsize, - unsigned int nbytes, - struct cc_hw_desc desc[], - unsigned int *seq_size) +static void cc_setup_cipher_desc(struct crypto_tfm *tfm, + struct blkcipher_req_ctx *req_ctx, + unsigned int ivsize, unsigned int nbytes, + struct cc_hw_desc desc[], + unsigned int *seq_size) { struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm); struct device *dev = drvdata_to_dev(ctx_p->drvdata); @@ -565,12 +562,10 @@ cc_setup_cipher_desc( } #if SSI_CC_HAS_MULTI2 -static void cc_setup_multi2_desc( - struct crypto_tfm *tfm, - struct blkcipher_req_ctx *req_ctx, - unsigned int ivsize, - struct cc_hw_desc desc[], - unsigned int *seq_size) +static void cc_setup_multi2_desc(struct crypto_tfm *tfm, + struct blkcipher_req_ctx *req_ctx, + unsigned int ivsize, struct cc_hw_desc desc[], + unsigned int *seq_size) { struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm); @@ -609,15 +604,12 @@ static void cc_setup_multi2_desc( } #endif /*SSI_CC_HAS_MULTI2*/ -static void -cc_setup_cipher_data( - struct crypto_tfm *tfm, - struct blkcipher_req_ctx *req_ctx, - struct scatterlist *dst, struct scatterlist *src, - unsigned int nbytes, - void *areq, - struct cc_hw_desc desc[], - unsigned int *seq_size) +static void cc_setup_cipher_data(struct crypto_tfm *tfm, + struct blkcipher_req_ctx *req_ctx, + struct scatterlist *dst, + struct scatterlist *src, unsigned int nbytes, + void *areq, struct cc_hw_desc desc[], + unsigned int *seq_size) { struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm); struct device *dev = drvdata_to_dev(ctx_p->drvdata);