Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp3206827rwl; Sun, 2 Apr 2023 02:46:16 -0700 (PDT) X-Google-Smtp-Source: AKy350a8qaOxLiJphTYBi6DsnqPCz/vrvKAexyxgn7Gmi+hJaNCKJAVolTqCItCLohlJgy0nIMF7 X-Received: by 2002:a17:907:7701:b0:92f:efdc:610e with SMTP id kw1-20020a170907770100b0092fefdc610emr31034619ejc.66.1680428776074; Sun, 02 Apr 2023 02:46:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680428776; cv=none; d=google.com; s=arc-20160816; b=PGPBYeVwzvfaAMp3z3miofKuMAeLuqOczkSDVDKAEDkU30oskYmWAmwPhqpR425j7t zgOFrRPsujG3zCx6aStJAcAB+CDLyFneby17LYC2dKq75NR2UUScFr3yfp80lPx29zzx Lwdk00xw0uwIwB1C1nKD3PtBVKVJVkH8euWSbxesCputXuae7FSl1kav3QXu0ca9maJ2 qn570MxtwMk56GGreFsyH5ddq/jhuOwgKDuf5p8ca6JHtHV6AmmNp4h8wXoI1JltOK/Z oHpnw5YMg28KyUJwmdo99c9DSxzNoA+mS/0yrvFXGeXZg8MdPaynMG00J/bkz93wRtNn pbLg== 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=U6YYinK+QQckszDxa73M5NSGK1OMahLPQw6lLhbBMHU=; b=Z2opxjxDCbYPsEbGRCkKXE35/m4vEc0Yf9ZCT11fxfqMvL8+3ULtCEvlqW7VhuIX5Z Zpr6d6zZlY+KvGPWmH2O5A7tRie4i3esU9HMVRgim34J8t223DgBoR+AACU6u7vqA9dT jJ7aC2JQ++1iZhRX4DaUcBrDlNJCOrzFuitLuFLeSuY55eE2zWw9njZkyIypYGkie6WE 9HgNphkK+hJ+Lh3UjI8mtCTk0WE1OfVVC1rVtRFg+MAGrarPhV3yXJ7EkYoTpD5DKUgn m+1Cz0Nlkg6aiHB2WM/+yNhdnOhSfWrtU0L7lgEwUSdpyEgo4BRYsHLouqewl1qAelLi rpxQ== 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 ck13-20020a170906c44d00b0093e328cf51bsi4536730ejb.519.2023.04.02.02.45.51; Sun, 02 Apr 2023 02:46:16 -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 S230361AbjDBJmj (ORCPT + 99 others); Sun, 2 Apr 2023 05:42:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230362AbjDBJmg (ORCPT ); Sun, 2 Apr 2023 05:42:36 -0400 Received: from smtp.smtpout.orange.fr (smtp-21.smtpout.orange.fr [80.12.242.21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F96A1BF72 for ; Sun, 2 Apr 2023 02:42:29 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id iuDzpwm4hwFKBiuEFpeDju; Sun, 02 Apr 2023 11:42:28 +0200 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 02 Apr 2023 11:42:28 +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 4/4] clk: Remove mmask and nmask fields in struct clk_fractional_divider Date: Sun, 2 Apr 2023 11:42:07 +0200 Message-Id: <680357e5acb338433bfc94114b65b4a4ce2c99e2.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 All users of these fields have been removed. They are now computed when needed with [mn]shift and [mn]width. This shrinks the size of struct clk_fractional_divider from 72 to 56 bytes. Signed-off-by: Christophe JAILLET --- include/linux/clk-provider.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index faad3cdc1e48..eb6930ae550f 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -1154,10 +1154,8 @@ struct clk_fractional_divider { void __iomem *reg; u8 mshift; u8 mwidth; - u32 mmask; u8 nshift; u8 nwidth; - u32 nmask; u8 flags; void (*approximation)(struct clk_hw *hw, unsigned long rate, unsigned long *parent_rate, -- 2.34.1