Message ID | 20230719071806.335718-1-martin@kaiser.cx |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2262258vqt; Wed, 19 Jul 2023 00:32:04 -0700 (PDT) X-Google-Smtp-Source: APBJJlGko4OconAipvodDXNho3Cvuklj8U5P5wfIOZM8baS7R+6DhPmXsf8LzCp+guqXLGLY1CiS X-Received: by 2002:a05:6358:8aa:b0:135:acfd:8786 with SMTP id m42-20020a05635808aa00b00135acfd8786mr7014007rwj.3.1689751923721; Wed, 19 Jul 2023 00:32:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689751923; cv=none; d=google.com; s=arc-20160816; b=HLIRiWONTLAAn7ubqCDs1wVVZ3Eea/FYa1ZLBeJxyorU+QE161cWUJXpzVRtD2Fznq HulAej1yrV0IIJA5eYGZdZHN7mZXGUpJ9NOAxzRiNjy0syx/iidFH0YR7IfE4DAuzyw1 qcLyEzmbyRuIulUdK+LXVtTgm5cAFUWkWpTDVdXcSoXGFjibyV92HDVB+bZoquv3SwV6 y5JtYaOnd74Hr5vVg9SVCWsR3v4g5Xis22itEA0b/mVOMHbkUDaIQK2ycb7lBBYGPSGh /uzpcHbuFYGwGT3j7mFGj3yh7VH3GTMQHqZWdP4W026EvHV6dOLwb2VfisZqs0+KjdkE eYAg== 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=xLeLa659WVvXqO2sndWUUHBfIlQhsqd0jGIoDb3fBYxwfxSdX0XOoiDHLYAHlCxl5x dGQGeUZxqk4GEFlm0anRKsZDos7HqlEuxKi5ggpy+v3HF0tFxTyhXQOmm7qDR8Bkf9S7 xGZTw4jgN5lp9j7i3MNhC3nmBKyhGMolDP1YQPMEUG9wlfvp+veN9lFgBQExhaqUpWmv VS0XWizYVWJKV4mALtR1uNoZnx37wBgsrtfuxxLtrgtSkRpPGJ5X8dBCBFvIQdQCQ41l 4mHYyjvaiWipYmbxeaXeO/ghqipUbZs9a2QjCF7S+8Uo5R66WqwrP3Bn9PjIPMi5lc2j pasQ== 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 k31-20020a635a5f000000b00543a6ce8c33si2992625pgm.78.2023.07.19.00.31.48; Wed, 19 Jul 2023 00:32:03 -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 S229879AbjGSHUN (ORCPT <rfc822;assdfgzxcv4@gmail.com> + 99 others); Wed, 19 Jul 2023 03:20:13 -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 <rfc822;linux-kernel@vger.kernel.org>); 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 <martin@kaiser.cx>) id 1qM1Th-0008I7-FB; Wed, 19 Jul 2023 09:20:05 +0200 From: Martin Kaiser <martin@kaiser.cx> To: Herbert Xu <herbert@gondor.apana.org.au> Cc: linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Martin Kaiser <martin@kaiser.cx> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771833312740724368 X-GMAIL-MSGID: 1771833312740724368 |
Series | hwrng: cctrng - simplify the code a bit | |
Message
Martin Kaiser
July 19, 2023, 7:18 a.m. UTC
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(-)
Comments
On Wed, Jul 19, 2023 at 09:18:02AM +0200, Martin Kaiser wrote: > 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(-) All applied. Thanks. -- Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt