Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7825226rwp; Wed, 19 Jul 2023 00:22:57 -0700 (PDT) X-Google-Smtp-Source: APBJJlEfl6G2YEwfp4uXtR3lpvfPcpQ1c1w5etGOnoy6SmuAKciH9GxSa7Aa+Pf/XFi2JpP5wvCY X-Received: by 2002:a17:907:3e29:b0:992:b3a3:81f4 with SMTP id hp41-20020a1709073e2900b00992b3a381f4mr1706663ejc.50.1689751376745; Wed, 19 Jul 2023 00:22:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689751376; cv=none; d=google.com; s=arc-20160816; b=WvVWybj7cJrhUswXJkPhZyYKGDdgo34t6CFBRoOcmplWkEygHPptKGaJHuLU6NUJrI SrpKuVjm0a3NCZ/ary6Dw3llfsRTyP5xvxFWXFFGMpsww/NTtglPgndFBJw+q0f9TSVu GYEWX+5msR0jFhDqDXzQX9pDrTWwpDjkRWwbZUR2iDHJdw0G0Zi/1ZLyrSr0mSqezIF8 G4YGetmFfIpQMOMlHIg7HWV2NIJNDHC/uetwjDuq70gpQ6tZZikLs2wBuBkaNgtwq9IE CLv3WvzshEywpsZr9rbJ2hC0p/jmYLv9u5hIR3s0s9Hd/H5aYenqqyeWPnyY1FdGhM53 16fQ== 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=llHZ7AJf8uoQ9/5QbdBz9ENAHNx9Cl8NbXHWhV4dpng=; fh=dVfXhkbP60ZT4KVr26y6imwTSq8xUCJNaPCgpFL70HA=; b=g9+VvLFC7gVwAgPdIiHHkTT7l6QUK5h+WmkdbIWgh0DFgqnEySAu+HwW+QYErieTjF GuVNQgrjMdJ/uXzlwmEB60e9Y4zgswip56vjGbPaM7qFx7ghhFfjkm2kEpiAQSkvJwyy QG/Qo/qjPJy1isbZtKXB2V6ZGC9EaIIf1d3xVqmgtXW2jXCZOKGlw0dYTJxNDoUZmmlM NELCJ1CQuwf4AKUmBtB77HEqd4GQo/NA8LJHBzfYZ7vpwyi6vxmWpVImaYNP2rzhjz/o Uq8xXeXNlZM2y3XyWFsI+2llaje21eOrV8KJB6WJKHuBQRKIRb0V/SZrpDEQRJWOkZhA tL5w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 u2-20020a170906068200b009935121ecd7si2242264ejb.639.2023.07.19.00.22.31; Wed, 19 Jul 2023 00:22:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229730AbjGSHUL (ORCPT + 99 others); Wed, 19 Jul 2023 03:20:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229566AbjGSHUK (ORCPT ); Wed, 19 Jul 2023 03:20:10 -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 4E686A4; Wed, 19 Jul 2023 00:20:09 -0700 (PDT) Received: from ipservice-092-217-093-053.092.217.pools.vodafone-ip.de ([92.217.93.53] 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 1qM1Th-0008I7-FB; Wed, 19 Jul 2023 09:20:05 +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/4] hwrng: cctrng - simplify the code a bit Date: Wed, 19 Jul 2023 09:18:02 +0200 Message-Id: <20230719071806.335718-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, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,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-crypto@vger.kernel.org We can use module_platform_driver and devm_clk_get_optional_enabled in the cctrng driver to make its code simpler. The patches were compile tested only. Martin Kaiser (4): hwrng: cctrng - don't open code init and exit functions hwrng: cctrng - let devres enable the clock hwrng: cctrng - merge cc_trng_clk_init into its only caller hwrng: cctrng - use dev_err_probe in error paths drivers/char/hw_random/cctrng.c | 93 +++++++-------------------------- 1 file changed, 19 insertions(+), 74 deletions(-) -- 2.30.2