Message ID | 680357e5acb338433bfc94114b65b4a4ce2c99e2.1680423909.git.christophe.jaillet@wanadoo.fr |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1655370vqo; Sun, 2 Apr 2023 02:45:27 -0700 (PDT) X-Google-Smtp-Source: AKy350ZjH9USQTqbVpllrgPRHTOxSNqsgkBNbp52afCTEEJ6/4UEDv6Bi8rLk1W/WERdu3ggWaj3 X-Received: by 2002:aa7:c3d7:0:b0:500:40f4:f8 with SMTP id l23-20020aa7c3d7000000b0050040f400f8mr30750805edr.0.1680428727640; Sun, 02 Apr 2023 02:45:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680428727; cv=none; d=google.com; s=arc-20160816; b=shMH/fBebrCJ+iFiab07IRJrZFxPztQdvCjpG1PCEFjfFxfqOImI14rljCWuQ6vaBU dsLxZn4J02uePm4Y+5wWymbnD5IHmGrgqaut/L+G8xeEl6k7VRf2+LuTd8iXP56Qzuhk +NO3LStOxneWa/afrNjzEnobUk1HM82DrPk+cIsC/h0TvuRmmLo0nczmYcWZh4mhcC4+ pWi+ty6eUCyMloEdq+av2qhDYXyAOsf6nPsjc1m2RILFa1vADs3QJRyRApBRZhaiOgT/ 2nX0bxhvwgNN/NjDO0HybZv7x2l/ux3Mifkslq2Ok+S//7T7uEi25EXABhldQAyT3n/k EEhg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i16-20020aa7c9d0000000b004bf976a1b56si2942532edt.627.2023.04.02.02.45.04; Sun, 02 Apr 2023 02:45:27 -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 S230378AbjDBJmj (ORCPT <rfc822;dexuan.linux@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <christophe.jaillet@wanadoo.fr> 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 <christophe.jaillet@wanadoo.fr> 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: <cover.1680423909.git.christophe.jaillet@wanadoo.fr> References: <cover.1680423909.git.christophe.jaillet@wanadoo.fr> 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1762057233557547412?= X-GMAIL-MSGID: =?utf-8?q?1762057233557547412?= |
Series |
clk: shrink struct clk_fractional_divider
|
|
Commit Message
Christophe JAILLET
April 2, 2023, 9:42 a.m. UTC
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 <christophe.jaillet@wanadoo.fr>
---
include/linux/clk-provider.h | 2 --
1 file changed, 2 deletions(-)
Comments
Am Sonntag, 2. April 2023, 11:42:07 CEST schrieb Christophe JAILLET: > 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 <christophe.jaillet@wanadoo.fr> Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Quoting Christophe JAILLET (2023-04-02 02:42:07) > 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 <christophe.jaillet@wanadoo.fr> > --- Applied to clk-next
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,