From patchwork Sun May 28 14:40:34 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: 100623 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp1063727qge; Sun, 28 May 2017 07:42:48 -0700 (PDT) X-Received: by 10.101.86.67 with SMTP id m3mr13632032pgs.137.1495982568720; Sun, 28 May 2017 07:42:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1495982568; cv=none; d=google.com; s=arc-20160816; b=ftwcMlYcFovq7H7RS79krGG9CH4jjmVivcEDHcd3qL02YBrQuUq76gRPVDnMchZlOG yLF5q27e1KHFheFHG0knOQoC+T4L52xgV6Q7CfR4LttpH8woyMy0XSLGmDVm19rUFj6o wakIayNxmFxEwN7DE7cRJb3lQ062aBEs+0sOUpsf20gBxooZFFI+hlIcqFsQFOseWe/h qoZ+454zWo18SqAaGyGWGLfF5xUVOS4ybKRAG0UOOwBXAF6FM2BKiDRlLnmUe7U85dU6 w1AL/kD4B4pDq+Ocu+VOfhqCzbAwEzrjWm4tjGlOKPqz6mGydPaWsmskkDqfLqDI/juE EYLg== 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=U1qnvl6V0OpVPU1cw2fqfrDE/IfjXMF5XMAlEt05DRM=; b=K/2UFOEtKKwU0lIycxBMWhc1wwSk6424KYOekKgysI8NaP4OJ2hAXbPwYQ+Vtt3wsa fRf8h3vFQpmO1OOcFztTVtWCLJdRp/yZdKFs3cOG0ehjn+H9xwYPRCMlZLy4ucVoiEui iQpr3JBSD7n7SNG8RJK/gecOVxVdNuLtcPenPaSNgnz5VHYA6sxkBOKZBXneust4fNK0 hTZ6jeR8/OBOMyBd6aUP7f9ZHpWR9jy5hdtR09mJqNHJNWHAM9xGOlSQN1xbU91YuhEA P7c5aYHXMLhXT2FeDACiTaaRxgCgXG73cTzesKtOz7XYwcm+w2OkTfkn+CtBC0gWjQ68 mDqw== 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 h68si7226258pfc.414.2017.05.28.07.42.48; Sun, 28 May 2017 07:42:48 -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 S1750992AbdE1OmX (ORCPT + 1 other); Sun, 28 May 2017 10:42:23 -0400 Received: from foss.arm.com ([217.140.101.70]:42168 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750872AbdE1Olm (ORCPT ); Sun, 28 May 2017 10:41:42 -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 F0825344; Sun, 28 May 2017 07:41:31 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2FAE23F52A; Sun, 28 May 2017 07:41:29 -0700 (PDT) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Ofir Drang , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org Subject: [PATCH 09/12] staging: ccree: use snake_case for hash enums Date: Sun, 28 May 2017 17:40:34 +0300 Message-Id: <1495982440-10047-10-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1495982440-10047-1-git-send-email-gilad@benyossef.com> References: <1495982440-10047-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 Hash enum were named using CamelCase, move over to snake_case. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/cc_hw_queue_defs.h | 4 ++-- drivers/staging/ccree/hash_defs.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) -- 2.1.4 diff --git a/drivers/staging/ccree/cc_hw_queue_defs.h b/drivers/staging/ccree/cc_hw_queue_defs.h index adc9e31..ec2113a 100644 --- a/drivers/staging/ccree/cc_hw_queue_defs.h +++ b/drivers/staging/ccree/cc_hw_queue_defs.h @@ -505,7 +505,7 @@ static inline void set_cipher_config0(struct cc_hw_desc *pdesc, * @config: Any one of the modes defined in [CC7x-DESC] */ static inline void set_cipher_config1(struct cc_hw_desc *pdesc, - enum HashConfig1Padding config) + enum cc_hash_conf_pad config) { pdesc->word[4] |= FIELD_PREP(WORD4_CIPHER_CONF1, config); } @@ -598,7 +598,7 @@ static inline void set_setup_mode(struct cc_hw_desc *pdesc, * @config: Any one of the cipher do defined in [CC7x-DESC] */ static inline void set_cipher_do(struct cc_hw_desc *pdesc, - enum HashCipherDoPadding config) + enum cc_hash_cipher_pad config) { pdesc->word[4] |= FIELD_PREP(WORD4_CIPHER_DO, (config & HW_KEY_MASK_CIPHER_DO)); diff --git a/drivers/staging/ccree/hash_defs.h b/drivers/staging/ccree/hash_defs.h index 9e01219..872ed97 100644 --- a/drivers/staging/ccree/hash_defs.h +++ b/drivers/staging/ccree/hash_defs.h @@ -44,14 +44,14 @@ #define HASH_LARVAL_SHA512 0x5be0cd19, 0x137e2179, 0x1f83d9ab, 0xfb41bd6b, 0x9b05688c, 0x2b3e6c1f, 0x510e527f, 0xade682d1, 0xa54ff53a, 0x5f1d36f1, 0x3c6ef372, 0xfe94f82b, 0xbb67ae85, 0x84caa73b, 0x6a09e667, 0xf3bcc908 #endif -enum HashConfig1Padding { +enum cc_hash_conf_pad { HASH_PADDING_DISABLED = 0, HASH_PADDING_ENABLED = 1, HASH_DIGEST_RESULT_LITTLE_ENDIAN = 2, HASH_CONFIG1_PADDING_RESERVE32 = S32_MAX, }; -enum HashCipherDoPadding { +enum cc_hash_cipher_pad { DO_NOT_PAD = 0, DO_PAD = 1, HASH_CIPHER_DO_PADDING_RESERVE32 = S32_MAX,