Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1250175rwl; Wed, 5 Apr 2023 14:10:01 -0700 (PDT) X-Google-Smtp-Source: AKy350Zs0om1i8GS25Q+ptQNU3/cJZIbu6tbHNgI5QROOIKYT59DK6OSkX5me0EkIVuO7gbOafki X-Received: by 2002:a05:6402:5142:b0:502:9a5b:206e with SMTP id n2-20020a056402514200b005029a5b206emr2755086edd.9.1680729000975; Wed, 05 Apr 2023 14:10:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680729000; cv=none; d=google.com; s=arc-20160816; b=y5eIdrjz6RQehXCao76HwfPqAKAR9qduFisCuhQtoRy1VCgXvnOncFRywBIuNhadii asnogDiHZYQ4Iy0VBuqhXxtGzjjrzTfp/29fkcSx1mAC2uoJ3519D69Jzut2ramr4ADX F+c13GvnkiKPgWwLmnKBGE5wUn9/SQP8WbvfRfbNlNgPqXZeoHhnnU2CB9qTPOh9Rj56 aeqhLI6yab8DHF20K87wVW6MlugirNxJpLiubcnYWroLlhUHkbIDZW7yAMdqlXesqun0 2boqCnZxogonC8O2BjrP9dHjpa52tijTHesjwwOLKWCez0ld8GobIP+na9hrJVOvxePo 4WAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:date:to:cc:from:subject:references :in-reply-to:content-transfer-encoding:mime-version:message-id :dkim-signature; bh=CIioZMoPDO2PrxlWhPevlncm5aTCs0s79viYs1WXQFU=; b=D3+tv/q54BEpakNIrB2b1UNTuvU4fR0I4BFPH6k7YSgZD0daDqntk0FOxaxhQz2Hz0 Ahxy7M8w9umfzFFtEOV7Qs6KUpVfj5CSFplQpzTukzzCcswysr+FzBOVih2C2I+i3Lop praUPPnfiFjAB3hD231jrGYO0viHT+bcA3j8IMGIMBmiOj3kSqBDyVs/etRBaxGy9mFu sRi3Lg+9sjnOtjEVt5OEZt8934WJzr7IWzzyRUzAXC6NHaxg4LRFIBXFiPaBsO/4Iw1z 7r/eTl+J/HO1zUDXc2rDGgf1SFJDpv4j+ln7PsiebvnXXe32MOPT/ILHgjxNCRmGRn7Y /fAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s50Ds8+m; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n9-20020aa7d049000000b005002b5c194csi3444091edo.144.2023.04.05.14.09.35; Wed, 05 Apr 2023 14:10:00 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=s50Ds8+m; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233443AbjDEVHE (ORCPT + 99 others); Wed, 5 Apr 2023 17:07:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233294AbjDEVHC (ORCPT ); Wed, 5 Apr 2023 17:07:02 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D4486A44; Wed, 5 Apr 2023 14:06:52 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E333E629AF; Wed, 5 Apr 2023 21:06:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48B7CC433EF; Wed, 5 Apr 2023 21:06:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1680728811; bh=fz0oE9b+bDhzOWWOAvv6B6YisnPYx9wmX8/hMqSu9jo=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=s50Ds8+mcer6wqL8iE5+a76eX25ZEddQ7rNLtSxRtv8Jn3/CdiL6j3uxH/wqDveOw qgL1XvfnKm2+lSpWLQAh8V6/h1ZB8H9CDr7Ae/+1Ar5S9u5LuaQAhLIwrEOBeCs8cK foA2pKx8rUuxKmBIT5bMgxZMoL+KCqQNWAUUIfoc3VMQ71wdZfh2SzLQYSdGzOPjg5 ICNfrjCeFUXxd0wbe/xkWzpicgJL3eY1PUr78B2qN2q+Iv14IBX7lJ3e3o+eH8aSem eqfVYml43FLB3TBMy1joQUGmRg94bGjdUBtiv2GMuLSiND7h5RVXiajwHy6mTEMROj ZCjJT4e/Ladjw== Message-ID: <43a469322f1557feb252a08bd4a42f03.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20230329075104.165176-3-mmyangfl@gmail.com> References: <20230329075104.165176-1-mmyangfl@gmail.com> <20230329075104.165176-3-mmyangfl@gmail.com> Subject: Re: [PATCH v2 2/4] clk: hisilicon: Use helper functions From: Stephen Boyd Cc: David Yang , Michael Turquette , linux-kernel@vger.kernel.org, Conor Dooley , Nick Alcock To: David Yang , linux-clk@vger.kernel.org Date: Wed, 05 Apr 2023 14:06:49 -0700 User-Agent: alot/0.10 X-Spam-Status: No, score=-5.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable 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 Quoting David Yang (2023-03-29 00:50:51) > Remove redundant codes. >=20 > Signed-off-by: David Yang > --- > drivers/clk/hisilicon/clk-hi3519.c | 134 ++---------- > drivers/clk/hisilicon/clk-hi3559a.c | 228 +++----------------- > drivers/clk/hisilicon/clk-hi3660.c | 207 ++++++------------ > drivers/clk/hisilicon/clk-hi3670.c | 270 +++++++++--------------- > drivers/clk/hisilicon/crg-hi3516cv300.c | 177 ++-------------- > drivers/clk/hisilicon/crg-hi3798cv200.c | 206 +++--------------- Maybe you can do this file by file in a different patch? And the commit text can say that you're migrating to the new way of registering clks with a device pointer? > drivers/clk/hisilicon/crg.h | 6 - > 7 files changed, 260 insertions(+), 968 deletions(-) >=20 > diff --git a/drivers/clk/hisilicon/clk-hi3519.c b/drivers/clk/hisilicon/c= lk-hi3519.c > index ad0c7f350cf0..199d1b8c3140 100644 > --- a/drivers/clk/hisilicon/clk-hi3519.c > +++ b/drivers/clk/hisilicon/clk-hi3519.c > @@ -6,11 +6,13 @@ > */ > =20 > #include > -#include It's still a clk provider. Keep this include. > + > +#include > #include > -#include Also still a platform driver. Keep this include. > +#include Not sure what this include is for. > + > #include "clk.h" > -#include "reset.h" > +#include "crg.h"