From patchwork Tue Dec 12 14:53:01 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: 121536 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4223830qgn; Tue, 12 Dec 2017 06:55:42 -0800 (PST) X-Google-Smtp-Source: ACJfBou9JE2TzX2grZ2+DURPn2YuVxCi8NKfZsuDvLZx/WmgdTR/IKB31150vTsPXMI5NDHl8Lcy X-Received: by 10.99.95.22 with SMTP id t22mr2235084pgb.195.1513090542062; Tue, 12 Dec 2017 06:55:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513090542; cv=none; d=google.com; s=arc-20160816; b=PQnzJ5/rbnT0g/fveDtLjn08rcjyrom2OjJpkz3MG/K6SUmO/NDhXRlP2xojQ9zD4b cG3j0YpEuDlbMQs7LXbb+fhiUhD+V3XXmeBtUmGMjAIDIO1fVUy+8g1L6PPjeS/deARo W9X1jQ5sy/EJs6y3lMvB2QEypU2cst2KQGO/juahDs8sGZkeuatzYTrjPhDmS8rTQ17i ieW5ZVh2qUeB6kQ4HR6n+qFRmrR42lvLrWTimeOllk4qzs3hMDLXB873UEYD6tbZhrpS KwJnRwlBw3s2DeJM9OiGMyGond0wExYn2xfDcuuxuCAOx3aAhTj+jw8byBuBspAnVY6e 8utw== 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=QrSoR1DPguuFPFsHcr4Iwbm81CGLVMS4KS0TQGURofM=; b=R0nZ4HXUd5ACHnZ9rolYBcnDEnhWpsUHHftGfUhvY6RXQKGO2/OBgKyWgi7DHxLz3m wHI6Tl0BOs+w/euxYFNbFaJ4cpSqQ9sAwf8GS4r9meYMK5wEFTFSLmQh8kvfGp88Rm0h 4h6a8fqjWG4GJdYUMPC5wbBVXMASyops97WKsX6ZFr8ggFhVtQJP2Z9OmB+DnpQIm5o5 OTXzc7pgOD5LlTYdV2nTi+2luL1j2p+bh4G/QGO/Pz92F3A1dCOyy0m+Gv2cF4E1rGEN MrDw0OWD39HW7oTKCM2h73J6N9OfR+4ZhVdIE3GPYPZKLIsYpzJYCHYKt2+IhHu2YBaB IScg== 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 d8si5441140pgf.419.2017.12.12.06.55.41; Tue, 12 Dec 2017 06:55:42 -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; 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 S1752879AbdLLOzi (ORCPT + 11 others); Tue, 12 Dec 2017 09:55:38 -0500 Received: from foss.arm.com ([217.140.101.70]:45164 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752830AbdLLOzc (ORCPT ); Tue, 12 Dec 2017 09:55:32 -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 233451529; Tue, 12 Dec 2017 06:55:32 -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 78A643F318; Tue, 12 Dec 2017 06:55:29 -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 15/24] staging: ccree: fix ivgen func def coding style Date: Tue, 12 Dec 2017 14:53:01 +0000 Message-Id: <1513090395-7938-16-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix ivgen functions definition indentation according to coding style guide lines for better code readability Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_ivgen.c | 16 +++++----------- drivers/staging/ccree/ssi_ivgen.h | 10 +++------- 2 files changed, 8 insertions(+), 18 deletions(-) -- 2.7.4 diff --git a/drivers/staging/ccree/ssi_ivgen.c b/drivers/staging/ccree/ssi_ivgen.c index ad6cd97..c499361 100644 --- a/drivers/staging/ccree/ssi_ivgen.c +++ b/drivers/staging/ccree/ssi_ivgen.c @@ -57,10 +57,8 @@ struct cc_ivgen_ctx { * \param iv_seq IN/OUT array to the descriptors sequence * \param iv_seq_len IN/OUT pointer to the sequence length */ -static int cc_gen_iv_pool( - struct cc_ivgen_ctx *ivgen_ctx, - struct cc_hw_desc iv_seq[], - unsigned int *iv_seq_len) +static int cc_gen_iv_pool(struct cc_ivgen_ctx *ivgen_ctx, + struct cc_hw_desc iv_seq[], unsigned int *iv_seq_len) { unsigned int idx = *iv_seq_len; @@ -236,13 +234,9 @@ int cc_ivgen_init(struct ssi_drvdata *drvdata) * * \return int Zero for success, negative value otherwise. */ -int cc_get_iv( - struct ssi_drvdata *drvdata, - dma_addr_t iv_out_dma[], - unsigned int iv_out_dma_len, - unsigned int iv_out_size, - struct cc_hw_desc iv_seq[], - unsigned int *iv_seq_len) +int cc_get_iv(struct ssi_drvdata *drvdata, dma_addr_t iv_out_dma[], + unsigned int iv_out_dma_len, unsigned int iv_out_size, + struct cc_hw_desc iv_seq[], unsigned int *iv_seq_len) { struct cc_ivgen_ctx *ivgen_ctx = drvdata->ivgen_handle; unsigned int idx = *iv_seq_len; diff --git a/drivers/staging/ccree/ssi_ivgen.h b/drivers/staging/ccree/ssi_ivgen.h index fe3d919..bbd0245 100644 --- a/drivers/staging/ccree/ssi_ivgen.h +++ b/drivers/staging/ccree/ssi_ivgen.h @@ -61,12 +61,8 @@ int cc_init_iv_sram(struct ssi_drvdata *drvdata); * * \return int Zero for success, negative value otherwise. */ -int cc_get_iv( - struct ssi_drvdata *drvdata, - dma_addr_t iv_out_dma[], - unsigned int iv_out_dma_len, - unsigned int iv_out_size, - struct cc_hw_desc iv_seq[], - unsigned int *iv_seq_len); +int cc_get_iv(struct ssi_drvdata *drvdata, dma_addr_t iv_out_dma[], + unsigned int iv_out_dma_len, unsigned int iv_out_size, + struct cc_hw_desc iv_seq[], unsigned int *iv_seq_len); #endif /*__SSI_IVGEN_H__*/