Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp2424570rdb; Tue, 12 Sep 2023 01:02:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHmG9u6ZiuqFc8XMD4Cp2Zy9fp7yPyvEFs+wLnFeKn92X8Xyt4dSFN+UdGNzOQpq3hT9L1I X-Received: by 2002:a05:6a00:2d1c:b0:68e:2cf2:1613 with SMTP id fa28-20020a056a002d1c00b0068e2cf21613mr11402561pfb.3.1694505766731; Tue, 12 Sep 2023 01:02:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694505766; cv=none; d=google.com; s=arc-20160816; b=KUfzW+E+7vh+n6ql0FwWBOfmymiSeHRXjHgqg6rE5Pb4AcIM/hWZUmhIx06RZTXuf1 T1QRQTydvVoiE83obt4Lt0OVs7qrbg3xK+CCMD/hOvBcnoaRj1Eq42d/zm5w15km/J+7 22kpjmgxunE+fiCbM6XyTIMrubfosXpZtm+aIvqqWMUIblduQQDCmcvQ5Lp31njea9QK fer4OZJQ6Q2dRGUGdGppBuSH0/NpPjTAcVPVXwbWrh0Xx0xOcdoVv5qX8/hLBEFgdy8a U/rhoOy1xMCHunzXDQudYkG9UA5gyQnsueKF9sTTw7LjJYMiAa4ZHa4rrjJ7MmEQ9Qus i/6g== 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 :dkim-signature; bh=xebdOcqzNiLkrduYHBYJ420PrwL90pWS/PE9oQklpQQ=; fh=7xbNZwTym+CKkW9darKiAIrlxwrHvdD9/+5rIv88u2Q=; b=PTOKQyu0gl2ORaVme1FlhhhpayGkqVoIIh6Q+nrmkcD1y9Sjhsu6L1Tuqb7802pMaE 9+4v1+pD0yl/SYrVfEDTzPmL6m3AFpObmkoXFX6qtt4LnOP03RkEgLJhxL/BgXw9y5wQ MUkXlOxMBs6R1Y4iSMhDgDO91OPoQkXrkpJOzEeJ0H4EX3WCVHSd4NWFy+GJYRrsEMe8 ialmsqPEjqBqLAVGmAHNhoWz3ckclh87VH14t46nt+y140C+lh3tRdPlkbpAdhsmnYYo Dw1iOo2l6fnnSI1HkVCECyh1kRZZpRAruj/KIWc7be3C/2swHbflKFbIfKMwb0CqFQvB uzDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=Q6951NLv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id q16-20020a63e210000000b00565e7a3342dsi7784964pgh.256.2023.09.12.01.02.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Sep 2023 01:02:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=Q6951NLv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 2E8CF8020A30; Mon, 11 Sep 2023 21:54:30 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.8 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229653AbjILEyL (ORCPT + 99 others); Tue, 12 Sep 2023 00:54:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229677AbjILEw7 (ORCPT ); Tue, 12 Sep 2023 00:52:59 -0400 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC69A170D for ; Mon, 11 Sep 2023 21:52:38 -0700 (PDT) Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-52e297c7c39so6478332a12.2 for ; Mon, 11 Sep 2023 21:52:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1694494357; x=1695099157; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xebdOcqzNiLkrduYHBYJ420PrwL90pWS/PE9oQklpQQ=; b=Q6951NLvBLtdQJdHbWazUlIgC6dItBfINLnECfWGnWpUHF8ddwr15nlV+1DTrRAlSX 6AG3yd5crTN+vL/rKVQLb9fatbnx7dRuII2Olzh3hLCYIOhnI1ltxS8P/m3VfM/KL/VN L9ESBj373OZIBhENeB7V2ePeTEJ8Mu48+q1ZJpG/wt+CagFnXDXy1eKLy4Qkr2w+IsLy gW10318azQ8oXmStfeF3QgulhaVtSFOjs0itKLtJGJBdbVBK0gH7uYaR2Powu16hXKGk gY2fgYbGPWLOsXNWwq9Jdpv4VIP1wrcVmMAmRUAlFO4GExQXN57y8lmfWmSLwG0hae02 1w2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694494357; x=1695099157; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xebdOcqzNiLkrduYHBYJ420PrwL90pWS/PE9oQklpQQ=; b=kpB2IPlaPdoJoVf4fykEP9AjsdwsNDTOkFDqeGlekc8KAb89WTKZOUsu3E0nOvK5Ot 0An/+WDbhbPGQXOUYlz8kNwyA/W84kwMcbMdAHcT9jMAAaf8op2YApWqAlT7J3FhqzIj dtrjlFGJVEMVgr58wPPWBu2j7bfkcexfGJ4fX45bwRyVzZTTCzfPZFds7FL38TKz7jpc skf0XPmXwhJ8NoI9KHdkx+IkyQcO+sK5RGLMGI3VOdvQxV/DKuyN6sA030QUd480/1DH ogOuAXzCMjkMU3A3KiL3W4Q1+PYQfEWOs8rZmy0IVzbmBOxhOBiYFBWZzjjd19jLTsky OuzQ== X-Gm-Message-State: AOJu0Yxjc3SUnv0DCzuFGRAQ3eaqUaq3W1AY5wqKMHpR1YiPmEXdCXmS X24NQLc8O9fddaEIDhoC/hGp4Q== X-Received: by 2002:aa7:c989:0:b0:525:58aa:6c83 with SMTP id c9-20020aa7c989000000b0052558aa6c83mr10337940edt.11.1694494357418; Mon, 11 Sep 2023 21:52:37 -0700 (PDT) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.145]) by smtp.gmail.com with ESMTPSA id f21-20020a05640214d500b0051e22660835sm5422415edx.46.2023.09.11.21.52.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Sep 2023 21:52:37 -0700 (PDT) From: Claudiu X-Google-Original-From: Claudiu To: geert+renesas@glider.be, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, ulf.hansson@linaro.org, linus.walleij@linaro.org, gregkh@linuxfoundation.org, jirislaby@kernel.org, magnus.damm@gmail.com, catalin.marinas@arm.com, will@kernel.org, prabhakar.mahadev-lad.rj@bp.renesas.com, biju.das.jz@bp.renesas.com, quic_bjorande@quicinc.com, arnd@arndb.de, konrad.dybcio@linaro.org, neil.armstrong@linaro.org, nfraprado@collabora.com, rafal@milecki.pl, wsa+renesas@sang-engineering.com Cc: linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Claudiu Beznea Subject: [PATCH 10/37] clk: renesas: rzg2l: use core->name for clock name Date: Tue, 12 Sep 2023 07:51:30 +0300 Message-Id: <20230912045157.177966-11-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230912045157.177966-1-claudiu.beznea.uj@bp.renesas.com> References: <20230912045157.177966-1-claudiu.beznea.uj@bp.renesas.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Mon, 11 Sep 2023 21:54:30 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email From: Claudiu Beznea core->name already contains the clock name thus, there is no need to check the GET_SHIFT(core->conf) to decide on it. Signed-off-by: Claudiu Beznea --- drivers/clk/renesas/rzg2l-cpg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/renesas/rzg2l-cpg.c b/drivers/clk/renesas/rzg2l-cpg.c index b391c9548421..44226682db2c 100644 --- a/drivers/clk/renesas/rzg2l-cpg.c +++ b/drivers/clk/renesas/rzg2l-cpg.c @@ -266,7 +266,7 @@ rzg2l_cpg_sd_mux_clk_register(const struct cpg_core_clk *core, clk_hw_data->priv = priv; clk_hw_data->conf = core->conf; - init.name = GET_SHIFT(core->conf) ? "sd1" : "sd0"; + init.name = core->name; init.ops = &rzg2l_cpg_sd_clk_mux_ops; init.flags = 0; init.num_parents = core->num_parents; -- 2.39.2