From patchwork Tue Jul 4 17:32:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Kaiser X-Patchwork-Id: 115875 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1379056vqx; Tue, 4 Jul 2023 10:52:43 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6104ckdWxhO4HakZx3SZEMjeVYvDnC0Q4Eiwdi9eHsjDQZ6ADvNWBt7hySFdnSom1kMenh X-Received: by 2002:a05:6a20:4ca0:b0:115:a2f4:6284 with SMTP id fq32-20020a056a204ca000b00115a2f46284mr10717249pzb.16.1688493162786; Tue, 04 Jul 2023 10:52:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688493162; cv=none; d=google.com; s=arc-20160816; b=sL4XkyTsle/MRFv0jYZVvZf55V2BGYWQzReT/HTjvUKY/z8rSDtWqq5c+exu/Ki34B LemwP3jKxnIry4zLBsi/OsIo31bJRIBynPlSfkRhmGLv+VhtToI23BS/ZlzHDuOcuYuY PmJvjncj9JNBGB53kPKP2X5EaFomqMcUmip707jhMXznPIfOZC4XTndJtU7dX3v38ZEP Anex7wUnLgHAfJKC07UWmErV7ldEApnNDcepxHccXbzqlVOnLqbw5P08LYJL4gw1NB8W aQL0VrbvY7YrJlL/9OGRpy7sVn6dWPYgC1hrpfRimdS/WsjFo36qP+9fZgB7EflS3fxg wCZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=H/cf/sp15qlImwkGLw1T/iqtr/YAZNSZRwX4x9CCJWs=; fh=lO4wmMQhvm8y/jaHDv9dt1CS5yb5ZTFKyt5xlt/d/d8=; b=GwIrmaS9fb3r3NFFAhRcgRGae5f+JYNAuDJeki50LI0q/7yrdZiwFqjg5fgg2Doyg9 KHw4zEanOyEnmOhMDBI5X8batBYOV9aL+O8334wwjRx/eYWCv/aEgFdEnpGNsCE+FyCm UbsO33dA9MkAIzCc6qpBGvirRHrqsh5rrHvAioq4zpEdBYaDov0yXCxd0m36TQwu1fZI Gk4fL6GR0T/rZOSVsunTxrrFAoLRvxErDdAME8AArtYYqEebuLjuh3x8NSN99ZzCdCaG vyJhkfimzP9OcwCTye4+BCf9zsNcNUtYXKmQ3+YRmGL+Py7tjX7dLp2jY0VznNpNWsrs cgJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d128-20020a633686000000b0055bc21ceb5asi2640285pga.548.2023.07.04.10.52.27; Tue, 04 Jul 2023 10:52:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231733AbjGDRd7 (ORCPT + 99 others); Tue, 4 Jul 2023 13:33:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231658AbjGDRdx (ORCPT ); Tue, 4 Jul 2023 13:33:53 -0400 Received: from viti.kaiser.cx (viti.kaiser.cx [IPv6:2a01:238:43fe:e600:cd0c:bd4a:7a3:8e9f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F4C710D9; Tue, 4 Jul 2023 10:33:52 -0700 (PDT) Received: from ipservice-092-217-072-126.092.217.pools.vodafone-ip.de ([92.217.72.126] helo=martin-debian-2.paytec.ch) by viti.kaiser.cx with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1qGjuP-0000yT-52; Tue, 04 Jul 2023 19:33:49 +0200 From: Martin Kaiser To: Herbert Xu Cc: Joshua Henderson , linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 3/4] hwrng: pic32 - remove unused defines Date: Tue, 4 Jul 2023 19:32:02 +0200 Message-Id: <20230704173203.70706-4-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230704173203.70706-1-martin@kaiser.cx> References: <20230704173203.70706-1-martin@kaiser.cx> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770513406666436370?= X-GMAIL-MSGID: =?utf-8?q?1770513406666436370?= Remove some unused defines and fix the indentation. Signed-off-by: Martin Kaiser --- drivers/char/hw_random/pic32-rng.c | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/drivers/char/hw_random/pic32-rng.c b/drivers/char/hw_random/pic32-rng.c index e04a054e8930..c1b3f5915f03 100644 --- a/drivers/char/hw_random/pic32-rng.c +++ b/drivers/char/hw_random/pic32-rng.c @@ -19,19 +19,12 @@ #include #define RNGCON 0x04 -#define TRNGEN BIT(8) -#define PRNGEN BIT(9) -#define PRNGCONT BIT(10) -#define TRNGMOD BIT(11) -#define SEEDLOAD BIT(12) -#define RNGPOLY1 0x08 -#define RNGPOLY2 0x0C -#define RNGNUMGEN1 0x10 -#define RNGNUMGEN2 0x14 +#define TRNGEN BIT(8) +#define TRNGMOD BIT(11) #define RNGSEED1 0x18 #define RNGSEED2 0x1C #define RNGRCNT 0x20 -#define RCNT_MASK 0x7F +#define RCNT_MASK 0x7F struct pic32_rng { void __iomem *base;