Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1098657rwr; Thu, 27 Apr 2023 12:17:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7Hz+kgNTJK8/DPN+J87IiVCi+/jux3EvVqGiJ6YjRsg8ChTbJj2Tg8ObuJTGTuLCzx/BH5 X-Received: by 2002:a17:902:e542:b0:1a9:90bc:c3c6 with SMTP id n2-20020a170902e54200b001a990bcc3c6mr3055460plf.16.1682623027156; Thu, 27 Apr 2023 12:17:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682623027; cv=none; d=google.com; s=arc-20160816; b=HqWEwQImc0GJ/uK5WyX89yTG20BrHr2Ke4QFcND9MavcMPgWPgTksJu9VhRffZGdCE p0PG8EqeF3EARm+iTMXy0MAQUZGGjX13pRHn6ibwn2OAqAH/E1aQoOu9sMdioH/ja7KB sNCwD6itGAfx8OrUt/1glkEfMFv4zhkUb/GPWsHgWnbsL2S5khbkO9yDQ9S2xoMxrJ4r KCj6IZizncMEfQ47j2vvLPyxfc/KW/caXYdBCO/7Oo1QWxUKXKfw4XSmg4FmOPWZGXa7 6FU3eSobd7u9DMrTtahpdc2PtuYaLUHQ7MFaR10uz5Wa6jArB1cjrI+ZzqXCSOl9Xsfp dwsw== 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 :message-id:date:subject:cc:to:from; bh=2PTg3hDy0EFTbpxYu1kc+JIQT3phI1Vp6Ns1yWDXSLc=; b=XuI1fZi9BtSklQWXX+vGkmD/mFsuSxW9tpX7q7XTizAg/qvWQwJZxzt2+lE/udnAvt 4O/IewmBr/ppl1NBkSUF2BfaJ2HGtrPDu7JAHaoa8JnF5D+xeCdLOgGSo2WXw4eCt+DE vwxRhRVlFh1dl4w+vCQO+dTYqNxcD8qbgTHiWtEV26o8qTo7GJnKwveT/8rvrhH482qM awrSKB8L66+0VVn03VU4peS7Ta/xtF0w/j/hz+l09beWjk9AAcUcG+JmgmB229WsI8om gSuetexLCPgT5h29LYQSYFT6FZzleYtcbh33EEFZlsXHVKVVOmpC9V1VyFR2E/TpIZNv Xc3Q== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l186-20020a6388c3000000b00524f9a05105si14114954pgd.59.2023.04.27.12.16.53; Thu, 27 Apr 2023 12:17:07 -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 S244660AbjD0TIK (ORCPT + 99 others); Thu, 27 Apr 2023 15:08:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244537AbjD0TIJ (ORCPT ); Thu, 27 Apr 2023 15:08:09 -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 566A4170C; Thu, 27 Apr 2023 12:07:52 -0700 (PDT) Received: from ipservice-092-217-081-249.092.217.pools.vodafone-ip.de ([92.217.81.249] 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 1ps6l3-0003RX-86; Thu, 27 Apr 2023 20:54:21 +0200 From: Martin Kaiser To: Herbert Xu Cc: linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser Subject: [PATCH 0/3] hwrng: imx-rngc - simplify register definitions Date: Thu, 27 Apr 2023 20:53:54 +0200 Message-Id: <20230427185357.923412-1-martin@kaiser.cx> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 This series simplifies some definitions for register bits and fields. We can then use the FIELD_GET macro to read register fields instead of masking and shifting manually. Tested on an imx258 board (rngb). Martin Kaiser (3): hwrng: imx-rngc - use bitfield macros to read fifo level hwrng: imx-rngc - use bitfield macros to read rng type hwrng: imx-rngc - use BIT(x) for register bit defines drivers/char/hw_random/imx-rngc.c | 32 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 17 deletions(-) -- 2.30.2