Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3205746rwl; Sun, 2 Apr 2023 02:44:05 -0700 (PDT) X-Google-Smtp-Source: AKy350YBasxYlSSrwURqFz5AC4Z6GRbGK5djkPo3Siwnn+2at+G7IMAdxrNqQDDk9BrB7FjTdsZb X-Received: by 2002:a17:907:a4c2:b0:947:7a69:96cf with SMTP id vq2-20020a170907a4c200b009477a6996cfmr8308675ejc.22.1680428645729; Sun, 02 Apr 2023 02:44:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680428645; cv=none; d=google.com; s=arc-20160816; b=nullHtoKWjsQfii7sVXqoz5NXL+hFuOKdNWAlraZLMQwztTZcAIs1x7ugJX23G/CTT JfR5n1PNLfKJ4G4gMsG7y+dcs1bk91R2F38o5qU3GSzvmKMg8vcnzahgYQ8G7j+ISD0d WxKvAogN1ulnnKo5QeHJhv3O24JC7C9q+0Vy/XP2J0YS28up6jRNQQ3fgObmtJ1TPjpm qPdhGeKHvROmMSbPebhjwvpVfIRUZn2vnYtsw6jVlYWDq14nq3zFsetQkzqMR/FLf3xi SnjYTip+JEe0n5TJqB7LXbB7E1/Nhifl9DoZerE25l8NWLZkB15Twv0c1pTvVJYnXSky Bgug== 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=kEQHhDl5sDyKebY4a4Q61TLaJ7KzP6TXiBSUJ7OXxt8=; b=ywNmZn9q+KZIPamB+D9KqS57sYgAfv2/hYAWiRS75iJiJUyD5NE9jOdSrlvqfJtKod zlkgStCX6qSQT6/VEG62vGFnt39x4baGmZed/y6DjbvnxOp6HAYrGKveLrSRrfs3uX7m sUwjh1KRewbnu+fz8ACNwxRBs6cLq68mbsq797kKOWHD6isWrxLlPDRg1nAr4T7PvLGy Q/XvA7s5eIWwDoTOxoTjpxeacRoNWKQqFK2DTYHsB7qxCcUs2eslRD5B8XODadpDai1B X0vCz4x9vu9zpdC5qCievuvOCaDoCcwjb2+9HKbdCjpZv7llf1PWeI0CimO+oXsYY8/U GcKw== 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 jg20-20020a170907971400b00947f4e2c36asi3880556ejc.760.2023.04.02.02.43.41; Sun, 02 Apr 2023 02:44:05 -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 S230344AbjDBJma (ORCPT + 99 others); Sun, 2 Apr 2023 05:42:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230295AbjDBJm3 (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 190601BF72 for ; Sun, 2 Apr 2023 02:42:28 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id iuDzpwm4hwFKBiuEEpeDj1; Sun, 02 Apr 2023 11:42:26 +0200 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 02 Apr 2023 11:42:26 +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 3/4] clk: rockchip: Remove values for mmask and nmask in struct clk_fractional_divider Date: Sun, 2 Apr 2023 11:42:06 +0200 Message-Id: <58e1950566e40e2fbb31004baee57a164ca6a390.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/rockchip/clk.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/clk/rockchip/clk.c b/drivers/clk/rockchip/clk.c index a8646794575a..4059d9365ae6 100644 --- a/drivers/clk/rockchip/clk.c +++ b/drivers/clk/rockchip/clk.c @@ -244,10 +244,8 @@ static struct clk *rockchip_clk_register_frac_branch( div->reg = base + muxdiv_offset; div->mshift = 16; div->mwidth = 16; - div->mmask = GENMASK(div->mwidth - 1, 0) << div->mshift; div->nshift = 0; div->nwidth = 16; - div->nmask = GENMASK(div->nwidth - 1, 0) << div->nshift; div->lock = lock; div->approximation = rockchip_fractional_approximation; div_ops = &clk_fractional_divider_ops; -- 2.34.1