From patchwork Thu Jun 1 11:03:06 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: 100891 Delivered-To: patch@linaro.org Received: by 10.182.202.35 with SMTP id kf3csp700241obc; Thu, 1 Jun 2017 04:05:33 -0700 (PDT) X-Received: by 10.98.218.72 with SMTP id w8mr510765pfl.155.1496315133048; Thu, 01 Jun 2017 04:05:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496315133; cv=none; d=google.com; s=arc-20160816; b=cMbthWLQ+epWwgj0pObbaw2ipj8UK5E5SgJZsx/4szU0pJW0+IVWREz2YxlSjlKCw9 lP1PlyFNxea74qNSZ1I4WRZQmgkzW7QSWwKxPNqED6pERONUiNAQxk/Q0VNw8kaGppId SZ+AxJFYH3JWa5+SHmSvAfHazK0vh0cklAqNUHziKRHvYUGXAGU6pfoZ+qhMdnu7oM3z /HYdGhGp8KuMZY9Ehv9z/2nFXR6CaTcQKV+ediuJXai15YiQYNV9bSl9BNpYm3Xzx8fO 9mEkf1NC3Z0e04UPPMmFL2j8vZV0DkzAwKEr9YpHa7gsVlvHBj2MdTOUQy6Dj6TMUvgO 1G5w== 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=ZNx6eyS7DSjAoHDmI5xtP003snp51EOa0v+iGKEFdYj2Y5XH2afnTdg78OchjSrfO2 +6w+qJG20zbXM8VGDkQx2b3nMt0PdayJ0Gkhk16YVxyJWgOgeaRwV7C+osNwTJQgB3B+ z7HutR1oXmczGAeFIFkd3YCWo/b/rtgGdcIkR1tSEPMOmuGKblJgqQ7S5jP2DOt28L7g mya2/z0FLdYvAfAnyXICAvmr9w1ZhbXMYt8BPnbC2KwCkqQ5RLkJvsiuLBOmzPep208U 4Dsa7jbJK/9oIgUK3v0M4IhRFL4X7dkuyWEEx2vGHowidNxcJAO/MWtfVz7D4doqbrr1 lT9Q== 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 b3si50252792pld.258.2017.06.01.04.05.32; Thu, 01 Jun 2017 04:05:33 -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 S1752041AbdFALFY (ORCPT + 25 others); Thu, 1 Jun 2017 07:05:24 -0400 Received: from foss.arm.com ([217.140.101.70]:54544 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751783AbdFALFV (ORCPT ); Thu, 1 Jun 2017 07:05:21 -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 520BC15A2; Thu, 1 Jun 2017 04:05:11 -0700 (PDT) Received: from gby.kfn.arm.com (unknown [10.45.48.155]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id CECF23F578; Thu, 1 Jun 2017 04:05:08 -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 v2 16/20] staging: ccree: use snake_case for hash enums Date: Thu, 1 Jun 2017 14:03:06 +0300 Message-Id: <1496314993-30229-17-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1496314993-30229-1-git-send-email-gilad@benyossef.com> References: <1496314993-30229-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,