From patchwork Sun Jun 4 08:02:32 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: 101343 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp438172qgd; Sun, 4 Jun 2017 01:06:26 -0700 (PDT) X-Received: by 10.99.113.74 with SMTP id b10mr15408151pgn.139.1496563586287; Sun, 04 Jun 2017 01:06:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496563586; cv=none; d=google.com; s=arc-20160816; b=RE2rrM8PcO7XYm5A6LZbL0ffcPZgX76JhAnNe+1LIpk6ubv0fh7ELWfnGkH4Z355ri JXPW0tbnTOH3dY0mjBrXSxp2mGy13BFztpCK0YMP6LGwXWxDJppCA3mks9LE8CK9kBFs bovgj+O/kwwtkVu8Jo4nbFWL2i2uIWj96l1PuPvR6wWV/Q6SSshR6G6O4sOV9amPr/dC +NMHiGi/0fIjPtb6uFZBpHHtEH5F7q9zu4sX9UNVY5nC4mnteriFu7kbjqRm9at/ekR6 0Ao1u/0pBsIVTpVDo3DzEAtVenJ1N1aQitFBk5vT10veKICIW+sUDWQh2C/yAaR47lsa OLgA== 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=L+H0vM3vWzO+a+n2/wU2SBZQjyU+2spBypGv3SBgM74=; b=C7fbM/JvNWnE10ZlnmvfTMkDKLpdmh4tA9LN15N0rJ3zcX65L2SKdWBhtb16tg9KQh btTWM37ZgbJsPcDAB/RgCUwOkez4w4+UUmDm5S1QtV+ixAV3phreN9/1uP7Su5/nSEzT v7SGL/jUEiCl+fdU+ilTvJ9ARFVfIeCpgz9rnY0cWsBtQHjKcU6dfaQPWJiteLf+DE8V uQwvCOwFyfaQ7KzUabqhFW92tqH9zErIAWkSHx5rHtkz1UYTfJzi/fEhYMcY8GZlzpNu UNm/Reji8v7QvxPgC/GrRTqpSGZed/z7ABMN5P4kIkpd7xZjKulKvLdgwYe4JAvJ/QpN R5jg== 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 m6si3794383pli.65.2017.06.04.01.06.25; Sun, 04 Jun 2017 01:06:26 -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 S1751279AbdFDIGX (ORCPT + 25 others); Sun, 4 Jun 2017 04:06:23 -0400 Received: from foss.arm.com ([217.140.101.70]:52782 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751291AbdFDIDx (ORCPT ); Sun, 4 Jun 2017 04:03:53 -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 04E5480D; Sun, 4 Jun 2017 01:03:53 -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 059F13F589; Sun, 4 Jun 2017 01:03:50 -0700 (PDT) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Joe Perches , Ofir Drang , linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org Subject: [PATCH v3 11/18] staging: ccree: use snake_case for hash enums Date: Sun, 4 Jun 2017 11:02:32 +0300 Message-Id: <1496563362-7954-12-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1496563362-7954-1-git-send-email-gilad@benyossef.com> References: <1496563362-7954-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 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 8dc9b6e..1cbd2e1 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,