From nobody Thu Apr 9 23:23:11 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 94A9C384243 for ; Wed, 4 Mar 2026 22:51:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772664697; cv=none; b=h/ih4Ny2mBacIS4SsK+wg6mVUoWVM3HR0hdnV/ASE7UmJvQDrRKHg5D8ngPj7UMtKOqb+mrXVo+EFi3CNTQ0lkU/VcE2CL6e3gbwkgl/PCZkUjBt10gwDNbAyBok+dlldXWiA3hpJIxhqaqefNMyuiGQsDZy/qAj+5dFFBjWp04= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772664697; c=relaxed/simple; bh=CDynmqnNGNqeRMDqyGZQt5+Y7aUBAhjbZuUmwJcAQF8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bX43yFJf6PT5BbgqF+Ic+YBlc4QSGoKZuvClIbRIdTpQXeSSxXBTHwp9iyC2/WFjDuO8nVyK0GVPJl98pt0S9z+x8D89RTb+31J+jGz7WTVE6eDSW4QFu1vdbwA1oQGbFMFIHNrAGu2D6G2dsiBhSd7SNcHdW/cm2sL/HTcZrIs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=JumxrEDo; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=UvENq1De; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="JumxrEDo"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="UvENq1De" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1772664695; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sAE4SvbVc5xuqVfNMXPNWetx7bFn7ASO7FJPhI+jmF0=; b=JumxrEDosYaaynRVc3sWoFnrXoflRaEwNmPTGrAfVS9u7trMaSMFP6YfXETmBvGkTwhoYi bYkS4B6G9KsO3CAoX7iuEKCx1ftHm/71WVa5h/PcMPuAEJBZH6XAoq6K1JGt+bBRcxCCFC bB8Su27x21HdRo73YmbNuMuhl6Y19+g= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-554-Zf2FsNOmMQiMwlqzwNsZ4Q-1; Wed, 04 Mar 2026 17:51:34 -0500 X-MC-Unique: Zf2FsNOmMQiMwlqzwNsZ4Q-1 X-Mimecast-MFC-AGG-ID: Zf2FsNOmMQiMwlqzwNsZ4Q_1772664694 Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-506549eb4b7so588555771cf.3 for ; Wed, 04 Mar 2026 14:51:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1772664694; x=1773269494; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=sAE4SvbVc5xuqVfNMXPNWetx7bFn7ASO7FJPhI+jmF0=; b=UvENq1De9YvutPiCMx/rNxIqqSE5oZbZh1tOlVNC+sWajkjAHbBrZ3zzSEUjeu4tMg Ah6BklIPQuAdJnDbKR8De3mx9csC2P3pQW3/kPiRLZ/ywi2zPt2bAiP934b+5nW8GdyA +dEq06yGnjb3X+Y5G9QSoX1a4KKQ+IOfySf8/V3zSbe+B4t/XDQSIY93elKdk0vqyHO2 jBM/FY4PzImriePcQ4p05As9khUzUrBWb8vsn9InqeR/0TavHZXIyxRZ89XVr+4wJvnJ uLpVJePK9d2cABqJFGeQF1O3WrskXz2/+mjsCRhljbd6ukqBfDDnWK18GecRR2SjhzZB hLsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772664694; x=1773269494; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=sAE4SvbVc5xuqVfNMXPNWetx7bFn7ASO7FJPhI+jmF0=; b=YpuK8STWd592ggMmymBFDISbENOwFl7R+iEOPHbb9z2sxmasqaZnvR1aYekn13piq9 ApXgEdc7cFr8sSiGzixNviy/BOMMExJ1CKlYzi8bIc5JLWB4tbG9Ya1q62Z3dPnOGW2+ z8TQRCaC/WC+y9R+PK2jm+ycWYyFhAA3KZp0dySssU3uWYxRpFRV4w8Fztg7ogEYodhk GBjY04GHMuW8llukbCSC3AnbeChl7L2DqHOyGb3BwXa4n1Y+mRkbMEb7d5roTPacUknq goRlG1uuHOUQNn42OJNP2nrUM19NV2kv7zBTD7CwiKGhTy9f740mpVU585+BF5InZj+F MJlw== X-Forwarded-Encrypted: i=1; AJvYcCXJEKjJEWf/bEEQstrAZP7yXvPuA3kCAE2dulBel8wq1VHJoTzVTGq7tSs6+/OBAd0ELyClOd2RuYtx6T0=@vger.kernel.org X-Gm-Message-State: AOJu0YzOn+O2QhgWjCD+n7cU1Eb0VaRkWwsFFYw9fqtQbdmYca3cFK5z ZGF5GgSQU85tzjFK7ruIok5wFHTL7uJzd9o0Dt4feBRvQfNhmU0s9WVstgJgfPB0TPnRVIMV40g Ubs9jjUImKB2eydyOKVTZJ0YozHP8cyA1sA8Kur57FXLhPfD/vjo8SItxPz2OGCUp/g== X-Gm-Gg: ATEYQzyf+zDuF2qMmyjn8WidnSTU+fTNhoYRWbqElRp+cMfO+1GRx7yBbn3E9cJMMcw GZ9iu1faYggV+uVh+ZeSM6s7GSKcnjVsKlDqAxJIzoGIIIsOb1xivCKULNJdqQLz+gdiDhwQeAx +7qrd4OL6MlRBNYjxTUgtG7vUu5KMI6oIxQABics/A2jrVAH2Sr5Rz30QqDhaDWM/iikpaQpVEJ yA996Ik0+3JEc0vskFwNrA+BQ/FxZGW1fhUj5ojp8yYlsa5EQwVpLxKJrh1+6tdJ8C+rsUg7OZy msTdzynXdlFrxhNSOFnQM7DhHpAPvIEMilSYN21F8+ZWGe2s0bWnNiDIEkOYrH8lALOyIV7mEcv epI4wSTDxmaBYeun6/SVpc/388Khc X-Received: by 2002:ac8:7d4e:0:b0:4eb:a192:de99 with SMTP id d75a77b69052e-508db42179emr47830301cf.76.1772664694162; Wed, 04 Mar 2026 14:51:34 -0800 (PST) X-Received: by 2002:ac8:7d4e:0:b0:4eb:a192:de99 with SMTP id d75a77b69052e-508db42179emr47830041cf.76.1772664693781; Wed, 04 Mar 2026 14:51:33 -0800 (PST) Received: from [10.125.247.224] ([2600:382:7705:162f:3db4:e16a:e5d8:352e]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-507449b4dc0sm157558891cf.14.2026.03.04.14.51.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Mar 2026 14:51:33 -0800 (PST) From: Brian Masney Date: Wed, 04 Mar 2026 17:51:03 -0500 Subject: [PATCH 1/2] clk: add kernel docs for struct clk_core Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260304-clk-docs-v1-1-fee468db99f1@redhat.com> References: <20260304-clk-docs-v1-0-fee468db99f1@redhat.com> In-Reply-To: <20260304-clk-docs-v1-0-fee468db99f1@redhat.com> To: Michael Turquette , Stephen Boyd , Maxime Ripard Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Brian Masney X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=4599; i=bmasney@redhat.com; s=20250903; h=from:subject:message-id; bh=CDynmqnNGNqeRMDqyGZQt5+Y7aUBAhjbZuUmwJcAQF8=; b=kA0DAAoWt9LdJ11+wIcByyZiAGmot22jq3Pe1ymtU3Tdf4xLiZ5WMCXA2cSmkAz1GcCEyn49U 4h1BAAWCgAdFiEEpG0ycFhlqj3e3CkEt9LdJ11+wIcFAmmot20ACgkQt9LdJ11+wIdx+wEAnDgE VvnDipPoU2NORr6nXjeaGJxfJqE7aA1js6Fo9C8BAOrEGuk1uMfDNBdO9WepblVp4M1n0dBEfP0 xAVgeWaMB X-Developer-Key: i=bmasney@redhat.com; a=openpgp; fpr=A46D32705865AA3DDEDC2904B7D2DD275D7EC087 Document all of the members of struct clk_core. Signed-off-by: Brian Masney Reviewed-by: Maxime Ripard --- drivers/clk/clk.c | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 59 insertions(+) diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 47093cda9df32223c1120c3710261296027c4cd3..18b7a14e3f2c595d82401be9382= a062fbca8a5c6 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -63,6 +63,65 @@ struct clk_parent_map { int index; }; =20 +/** + * struct clk_core - This structure represents the internal state of a clk + * within the kernel's clock tree. Drivers do not interact with this struc= ture + * directly. The clk_core is manipulated by the framework to manage clock + * operations, parent/child relationships, rate, and other properties. + * + * @name: Unique name of the clk for identification. + * @ops: Pointer to hardware-specific operations for this cl= k. + * @hw: Pointer for traversing from a struct clk to its + * corresponding hardware-specific structure. + * @owner: Kernel module owning this clk (for reference counti= ng). + * @dev: Device associated with this clk (optional) + * @rpm_node: Node for runtime power management list management. + * @of_node: Device tree node associated with this clk (if appli= cable) + * @parent: Pointer to the current parent in the clock tree. + * @parents: Array of possible parents (for muxes/selectable par= ents). + * @num_parents: Number of possible parents + * @new_parent_index: Index of the new parent during parent change. This = is + * also used when a clk's rate is changed. + * @rate: Current clock rate (Hz). This is effectively a cach= ed + * value of what the hardware has been programmed with= . It's + * initialized by reading the value at boot time, and = will + * be updated every time an operation affects the rate. + * Clocks with the CLK_GET_RATE_NOCACHE flag should no= t use + * this value, as its rate is expected to change behin= d the + * kernel's back (because the firmware might change it= , for + * example). Also, if the clock is orphan, it's set to= 0 + * and updated when (and if) its parent is later loade= d, so + * its content is only ever valid if clk_core->orphan = is + * false. + * @req_rate: The last rate requested by a call to clk_set_rate. = It's + * initialized to clk_core->rate. It's also updated to + * clk_core->rate every time the clock is reparented, = and + * when we're doing the orphan -> !orphan transition. + * @new_rate: New rate to be set during a rate change operation. + * @new_parent: Pointer to new parent during parent change. This is= also + * used when a clk's rate is changed. + * @new_child: Pointer to new child during reparenting. This is al= so + * used when a clk's rate is changed. + * @flags: Clock property and capability flags. + * @orphan: True if this clk is currently orphaned. + * @rpm_enabled: True if runtime power management is enabled for thi= s clk. + * @enable_count: Reference count of enables. + * @prepare_count: Reference count of prepares. + * @protect_count: Protection reference count against disable. + * @min_rate: Minimum supported clock rate (Hz). + * @max_rate: Maximum supported clock rate (Hz). + * @accuracy: Accuracy of the clock rate (parts per billion). + * @phase: Current phase (degrees). + * @duty: Current duty cycle configuration (as ratio: num/den= ). + * @children: All of the children of this clk. + * @child_node: Node for linking as a child in the parent's list. + * @hashtable_node: Node for hash table that allows fast clock lookup b= y name. + * @clks: All of the clk consumers registered. + * @notifier_count: Number of notifiers registered for this clk. + * @dentry: DebugFS entry for this clk. + * @debug_node: DebugFS node for this clk. + * @ref: Reference count for structure lifetime management. + */ struct clk_core { const char *name; const struct clk_ops *ops; --=20 2.53.0 From nobody Thu Apr 9 23:23:11 2026 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 004423845CD for ; Wed, 4 Mar 2026 22:51:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772664701; cv=none; b=Wu7ihRisdsh23vKQ/4DJRudkisoYhuHOKcorqIG4wDEBeeIhaAV8PWl+ML4Bo7EWQL8JFqcuPNlKCWryhHSzMRyBjSQ/hjgfTehvW1DBjJsgq8rzkin0ToX6P6zmyMLnulhkk69qliNAuojNULnbNKdmgQ5kgG+XNY85KdHIkP8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772664701; c=relaxed/simple; bh=+jW3MS7DFLqoUmBWO2hApFPt6x7I6eU55roZMBHG3AY=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=JIDsi0C8HgFDP9dfWBQZoihlJwhacIjhrLbLC4keWKq3fC4DyLvG1cVvHhg3D5GPC24nRvDR2Y/vlqMViK6TsKM74CZ9T5fS1ari5tZ/AfhY3jhbfKhiIYLLrhVV49AT3PK6arLpNSasfDweK8l9C4KkEUZi4ATS9rdcYk6LVEM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=fhdIwUmF; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=ethVQs6O; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="fhdIwUmF"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="ethVQs6O" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1772664699; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ahje0afOzEE5AO8iZY1qk1UFWqM0XHyDZg7ReLCYYwI=; b=fhdIwUmFQlfj/JRs5mo1yWIN/goYOpKWLITNB+LHX8B4lTR1VmeEmE59paGe1ucI57Qi7/ xNg6TG//XelM0loiNCHwYtd/Z0aY/SVJhyq1Phz6tCwzPfoCvmphU1YCQsFtoG6VNsqBzz /GGLRIrD5OoXVhVMY5DRr62LdJuvjcU= Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-576-Z2-emWlzOlmpJHzu5gSOcA-1; Wed, 04 Mar 2026 17:51:38 -0500 X-MC-Unique: Z2-emWlzOlmpJHzu5gSOcA-1 X-Mimecast-MFC-AGG-ID: Z2-emWlzOlmpJHzu5gSOcA_1772664697 Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-506bfa0441aso48079371cf.3 for ; Wed, 04 Mar 2026 14:51:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1772664697; x=1773269497; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=ahje0afOzEE5AO8iZY1qk1UFWqM0XHyDZg7ReLCYYwI=; b=ethVQs6OKdSM86yy0g7ZJQ39Hk6IwhbcsNyjiMktaNcqwU3nYh4wRidJyAOkaC+8qk W0USlASM69BrVGNbqQDJMQ3l1YG3XocQyu5zEHB1rt8qE7aWpV6M/aFe7slf9WXoLY3q L8SqKBTKltNV+wCpWzKLsIVQ8kQ0hsZxCqGZ+Zr1ELJ5R2b2mISxJoeHsVeHnfMgEOh0 zG42dNRxhb8HnOG8/Ri9Xvi/bVCcNOPEsajiLVOn8L0xtNF08spN+oBS0QvXvS6jW8Vv 86oyrRiBQwDXDbDr7NfgI+JJHfIuyzoT9myQBY14OrDs0B7EsiDQHoWtENRwrT6cwXrW 2BOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772664697; x=1773269497; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=ahje0afOzEE5AO8iZY1qk1UFWqM0XHyDZg7ReLCYYwI=; b=Rk8nSHvZ2JVGdY2HNUjUsUiLy62qBO6DsYIG6drfSPg5A3dAfjA0MQx4BhRMRkcnD3 jxn9bmc2OqExQAM+yJarKGWtxyd1ImUgCIg7q74h4J49aYtB3nzSWkqfEbEb7uy8J8ah nLH4fOc8rM5Xr3Yi8SuM26uxEKXyDzXpDQor0dBtYKmElUQ5nhEggGYtCCeCl6cjw44U NXBgDn29q6+OYb/Afw+Emc1n0bnEHN1zDivqYoeADu8X9ExlrwGfXYGMDXgZOsBYwDKl CI2ynrvO75WiPEVbOyJe9tkP4QmM24Lb52xsMiWXUDzfD2IRnBCNtJO9tOHr7+cKrBh5 7O6w== X-Forwarded-Encrypted: i=1; AJvYcCUsv3RmJjFvbpPIb/lgHvRbDSfroaMWSQ7m0OegRcLWtATefW9ELaxRi4UnnHzHmn0ViNdJCoGmuMDGp5k=@vger.kernel.org X-Gm-Message-State: AOJu0YyEkgpYGSdpe+qw+i01Cpevuh4SM1Ky6R+BDZzQl4glGGEhDP4w 8dWtdrA7TI+Yc4Ua9t7wEnsPtqlixr+GeTgg5K8FpFCITv2pfxzo0Pp4Feb8W4jW1LC36SBWu/s B8cKrANw5nKeCszg3A92AqyTc/IJPWq+o7A3TQP1TAuI0532csa4eUlhIAKlGEILF6d0ObYZEJw == X-Gm-Gg: ATEYQzw95ObgXUK3MpYu9kgciWLLk8LiEZ/wux9Xs9FOxTRa4IJfDDG5hXyo+5aoqJQ iZHK5BmI1jRa9YhBD0D5h9tZK7VvCTrDKOSAVdrMkqRijycQvxggEoS9qlqKIcTIGlKFvc8+NQt /sSpCHe9hHMgJ5Hb9vlU7Tm3wDhoPK/9HE0L+dVtuv1VC/w8NHA3qoP0ZzlnoMA3PT/cuYO4l97 3BcYRC4SI04/yaEOZHZGcyL2+qM4tpNKKpFhuKHQolm/0/SgdOZLZpD20NKuXbi6mMPL17iYdOB TwSlUeu5SlReBuNPhS3d98TYgoWGBx+klFTwLUecFcCrRF2/ZBUPWEOwH6jZ3RUyxu6KUiRwPxd IBNO0HTcfck14Oo5DjVPCqji+shuA X-Received: by 2002:a05:622a:3d1:b0:503:2b0b:ebee with SMTP id d75a77b69052e-508dadfe8e2mr52202011cf.0.1772664697418; Wed, 04 Mar 2026 14:51:37 -0800 (PST) X-Received: by 2002:a05:622a:3d1:b0:503:2b0b:ebee with SMTP id d75a77b69052e-508dadfe8e2mr52201911cf.0.1772664697106; Wed, 04 Mar 2026 14:51:37 -0800 (PST) Received: from [10.125.247.224] ([2600:382:7705:162f:3db4:e16a:e5d8:352e]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-507449b4dc0sm157558891cf.14.2026.03.04.14.51.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Mar 2026 14:51:35 -0800 (PST) From: Brian Masney Date: Wed, 04 Mar 2026 17:51:04 -0500 Subject: [PATCH 2/2] clk: test: convert constants to use HZ_PER_MHZ Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260304-clk-docs-v1-2-fee468db99f1@redhat.com> References: <20260304-clk-docs-v1-0-fee468db99f1@redhat.com> In-Reply-To: <20260304-clk-docs-v1-0-fee468db99f1@redhat.com> To: Michael Turquette , Stephen Boyd , Maxime Ripard Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Brian Masney X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=1065; i=bmasney@redhat.com; s=20250903; h=from:subject:message-id; bh=+jW3MS7DFLqoUmBWO2hApFPt6x7I6eU55roZMBHG3AY=; b=owGbwMvMwCW2/dJd9di6A+2Mp9WSGDJXbM8vlJ6xzfPu+sOu607cu7N6pY3HVoaWwJKVdXP9r jpPtLSc0FHKwiDGxSArpsiyJNeoICJ1le29O5osMHNYmUCGMHBxCsBEEvsZGTrOisn0r/0X7Pj4 +PyFfrfY1z3nu68steBDSZiCkv//1MmMDHNWJJ3vX8GmM//JPlE1PW+D0gMzQh1ezuuer7z/6qk Pe1kB X-Developer-Key: i=bmasney@redhat.com; a=openpgp; fpr=A46D32705865AA3DDEDC2904B7D2DD275D7EC087 Convert the DUMMY_CLOCK_* constants over to use HZ_PER_MHZ. Signed-off-by: Brian Masney Reviewed-by: Maxime Ripard --- drivers/clk/clk_test.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/clk/clk_test.c b/drivers/clk/clk_test.c index a268d7b5d4cb28ec1f029f828c31107f8e130556..372dd289a7ba148a0725ea06433= 42ccda7196216 100644 --- a/drivers/clk/clk_test.c +++ b/drivers/clk/clk_test.c @@ -7,6 +7,7 @@ #include #include #include +#include =20 /* Needed for clk_hw_get_clk() */ #include "clk.h" @@ -21,9 +22,9 @@ =20 static const struct clk_ops empty_clk_ops =3D { }; =20 -#define DUMMY_CLOCK_INIT_RATE (42 * 1000 * 1000) -#define DUMMY_CLOCK_RATE_1 (142 * 1000 * 1000) -#define DUMMY_CLOCK_RATE_2 (242 * 1000 * 1000) +#define DUMMY_CLOCK_INIT_RATE (42 * HZ_PER_MHZ) +#define DUMMY_CLOCK_RATE_1 (142 * HZ_PER_MHZ) +#define DUMMY_CLOCK_RATE_2 (242 * HZ_PER_MHZ) =20 struct clk_dummy_context { struct clk_hw hw; --=20 2.53.0