Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3206517rwl; Sun, 2 Apr 2023 02:45:38 -0700 (PDT) X-Google-Smtp-Source: AKy350YWMCwqW0DUIFaZOwEqCMRK2w3+eXASu0V5LObOdgwYluj5DPjeNlFttaKGNztGx7p9XPF/ X-Received: by 2002:a17:906:6710:b0:8af:22b4:99d2 with SMTP id a16-20020a170906671000b008af22b499d2mr14281012ejp.5.1680428738085; Sun, 02 Apr 2023 02:45:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680428738; cv=none; d=google.com; s=arc-20160816; b=eM+8VseCVK/O9QScbM51YnZBPkB/oUJo2Ek6XNOgpArGtL2RVZ7/HJ7VV+psLNzWTP VV3Cn9pDKE5v/p9FNT5o6YgE2Q/8GE/swydAm3H68L6FrVMFQ85TnRrgvnwChK7jehtA O0Pn4X6Fnsy4VD9nT03YVoZyHnXdkbir9mwT7uFsTfGINS+bCba0+x8z3HM0mSI5e55z OmvZdeJ7HVw775j18RJJ+OKRw0uP5mTq7Skv0f41fYwmqEbsPd/zlVwf8GQZDvSeyfKZ E9TiO3AZ2p972ZyQB3XpAEspmEpXBXlg3Ek1a0DsKCkwnuitHEGETEGjqO+oR9hrSxcr IkCg== 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; bh=KEQFnAMSOELF+l+fh+rk1czw9PzBB3OxyXt+OHLU+JY=; b=ZUUw29jfQ/FP2S/kLNBR4wWPV2GQps8+fmfYnpMsJNqoRVhhvI6sHe7zN3Ht74qsj2 Gw6+apk7o4QSEmnuZ/iRrZb4l860wquYuub+my66sIqe/8e/IsIKxKCSSCiG3CKTQmyH Q85bcRu5n87OCFb3FoCvujQInI7qpZYEWoLuXSHLuTpfsOVDmVi6PGeCLGpF0I/9eqbb VmfU6r7XjjtX8QPv+4Egs+xExEZEhol33gJ8da3FdLVuiSz7eHSdTpozBh3XHBnr+gUf d0lw7oF/iSukSJttf0qS36tpcvLkfrciwzPE4Ci4Elu6qgyyxgCxfEbkwFbcwD/VpM0p 3foQ== 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 qh21-20020a170906ecb500b008e7916f1952si3052569ejb.822.2023.04.02.02.45.13; Sun, 02 Apr 2023 02:45:38 -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 S230295AbjDBJme (ORCPT + 99 others); Sun, 2 Apr 2023 05:42:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230297AbjDBJm3 (ORCPT ); Sun, 2 Apr 2023 05:42:29 -0400 Received: from smtp.smtpout.orange.fr (smtp-22.smtpout.orange.fr [80.12.242.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E741D1BF76 for ; Sun, 2 Apr 2023 02:42:26 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id iuDzpwm4hwFKBiuEDpeDiY; Sun, 02 Apr 2023 11:42:25 +0200 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 02 Apr 2023 11:42:25 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET To: mturquette@baylibre.com, sboyd@kernel.org, abelvesa@kernel.org, peng.fan@nxp.com, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, heiko@sntech.de Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET Subject: [PATCH v2 2/4] clk: imx: Remove values for mmask and nmask in struct clk_fractional_divider Date: Sun, 2 Apr 2023 11:42:05 +0200 Message-Id: <187a2266c3a034a593a151d6e5e6b21118043b5d.1680423909.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 Now that fractional_divider clk computes mmask and nmask when needed, there is no more need to provide them explicitly anymore. Signed-off-by: Christophe JAILLET --- drivers/clk/imx/clk-composite-7ulp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/clk/imx/clk-composite-7ulp.c b/drivers/clk/imx/clk-composite-7ulp.c index 4eedd45dbaa8..e208ddc51133 100644 --- a/drivers/clk/imx/clk-composite-7ulp.c +++ b/drivers/clk/imx/clk-composite-7ulp.c @@ -19,10 +19,8 @@ #define PCG_CGC_SHIFT 30 #define PCG_FRAC_SHIFT 3 #define PCG_FRAC_WIDTH 1 -#define PCG_FRAC_MASK BIT(3) #define PCG_PCD_SHIFT 0 #define PCG_PCD_WIDTH 3 -#define PCG_PCD_MASK 0x7 #define SW_RST BIT(28) @@ -102,10 +100,8 @@ static struct clk_hw *imx_ulp_clk_hw_composite(const char *name, fd->reg = reg; fd->mshift = PCG_FRAC_SHIFT; fd->mwidth = PCG_FRAC_WIDTH; - fd->mmask = PCG_FRAC_MASK; fd->nshift = PCG_PCD_SHIFT; fd->nwidth = PCG_PCD_WIDTH; - fd->nmask = PCG_PCD_MASK; fd->flags = CLK_FRAC_DIVIDER_ZERO_BASED; if (has_swrst) fd->lock = &imx_ccm_lock; -- 2.34.1