From patchwork Tue Aug 15 06:26:42 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: 110102 Delivered-To: patch@linaro.org Received: by 10.182.109.195 with SMTP id hu3csp5115401obb; Mon, 14 Aug 2017 23:28:20 -0700 (PDT) X-Received: by 10.99.128.194 with SMTP id j185mr26666180pgd.80.1502778500425; Mon, 14 Aug 2017 23:28:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502778500; cv=none; d=google.com; s=arc-20160816; b=m+WJeeW7Xp77TepTXTJnjK28B5SYqN64Drhh76ePRUfCBY040jjL5VqU4IYe0TubE4 lU404PNvruSs/tmsdBNIewsjOSI5frRu9s4Wp0tcPDEGW66dI6aGihKU6wtalw0X6es3 z5zd4rPsJ/MD0LLc1JTA7mZvIGxgKSf0kOwygS4g97AHVYD/+9kCHOm+JP0/3h1kQ2UQ VwXpr3t9wPnWI0pkeTTvfFYDkv5Pmui1xSWnCIOW6XjXpO7l7NVKaOYDHy32e9bSEq5C vs/DI3CPo0urTU3T5cXJDM8x97o7mXtn6B0dumqVv4KRYYwCe0Gkf+Z1u62D/QOkmBVt oxrw== 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=OVsPNJ9guTIG4YYQMBcCpiI3aYzVmO/qpBR0Xvm+uf4=; b=w8MSxhPjMksDnXGGhMhJBpW5h/bai6gLSCfBAeY8SinEKM0tYm/6aqB7PmPuKya0rp ppanOZze5GnRT/6Od4kgXdiC5yeH2ac9k4YTvZ8e63q5mOttILpRKtwiCTI/nxsIYkfr 5XyvKlRoVWwivGJJntwjSdg0dzighOZ3eUgkhhsb+WxludFH6UpI/2roXJnkXa51Snvp euoEBgn2E28pSe+mk+u3PEzLGljubE2Sxv+NFk7dlbWfiDAbpfIQTeuo/jvPTo90rqFV XbIFrJXMun+02Y/yKtoYNvh8oq+9mS0+Ibzu1RPQZ98AheFh/cl6Ws1i9JSPQmqZJsvn BUXA== 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 i189si5044381pgc.824.2017.08.14.23.28.20; Mon, 14 Aug 2017 23:28:20 -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 S1753581AbdHOG2P (ORCPT + 25 others); Tue, 15 Aug 2017 02:28:15 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:48160 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752484AbdHOG2L (ORCPT ); Tue, 15 Aug 2017 02:28:11 -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 06D152B; Mon, 14 Aug 2017 23:28:11 -0700 (PDT) Received: from gby.kfn.arm.com (unknown [10.45.48.148]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 644CE3F3E1; Mon, 14 Aug 2017 23:28:09 -0700 (PDT) From: Gilad Ben-Yossef To: Greg Kroah-Hartman , linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: Ofir Drang Subject: [PATCH v3 14/22] staging: ccree: fix struct init braces Date: Tue, 15 Aug 2017 09:26:42 +0300 Message-Id: <1502778412-16255-15-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1502778412-16255-1-git-send-email-gilad@benyossef.com> References: <1502778412-16255-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 Put struct init braces on line of it's own. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_hash.c | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) -- 2.1.4 diff --git a/drivers/staging/ccree/ssi_hash.c b/drivers/staging/ccree/ssi_hash.c index e2dc5d8..6baa449 100644 --- a/drivers/staging/ccree/ssi_hash.c +++ b/drivers/staging/ccree/ssi_hash.c @@ -41,26 +41,42 @@ struct ssi_hash_handle { }; static const u32 digest_len_init[] = { - 0x00000040, 0x00000000, 0x00000000, 0x00000000 }; + 0x00000040, 0x00000000, 0x00000000, 0x00000000 +}; + static const u32 md5_init[] = { - SHA1_H3, SHA1_H2, SHA1_H1, SHA1_H0 }; + SHA1_H3, SHA1_H2, SHA1_H1, SHA1_H0 +}; + static const u32 sha1_init[] = { - SHA1_H4, SHA1_H3, SHA1_H2, SHA1_H1, SHA1_H0 }; + SHA1_H4, SHA1_H3, SHA1_H2, SHA1_H1, SHA1_H0 +}; + static const u32 sha224_init[] = { SHA224_H7, SHA224_H6, SHA224_H5, SHA224_H4, - SHA224_H3, SHA224_H2, SHA224_H1, SHA224_H0 }; + SHA224_H3, SHA224_H2, SHA224_H1, SHA224_H0 +}; + static const u32 sha256_init[] = { SHA256_H7, SHA256_H6, SHA256_H5, SHA256_H4, - SHA256_H3, SHA256_H2, SHA256_H1, SHA256_H0 }; + SHA256_H3, SHA256_H2, SHA256_H1, SHA256_H0 +}; + #if (DX_DEV_SHA_MAX > 256) static const u32 digest_len_sha512_init[] = { - 0x00000080, 0x00000000, 0x00000000, 0x00000000 }; + 0x00000080, 0x00000000, 0x00000000, 0x00000000 +}; + static const u64 sha384_init[] = { SHA384_H7, SHA384_H6, SHA384_H5, SHA384_H4, - SHA384_H3, SHA384_H2, SHA384_H1, SHA384_H0 }; + SHA384_H3, SHA384_H2, SHA384_H1, SHA384_H0 +}; + static const u64 sha512_init[] = { SHA512_H7, SHA512_H6, SHA512_H5, SHA512_H4, - SHA512_H3, SHA512_H2, SHA512_H1, SHA512_H0 }; + SHA512_H3, SHA512_H2, SHA512_H1, SHA512_H0 +}; + #endif static void ssi_hash_create_xcbc_setup(struct ahash_request *areq,