From nobody Thu Oct 2 09:17:05 2025 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) (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 12E982820DB; Thu, 18 Sep 2025 21:16:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=68.232.153.233 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758230189; cv=none; b=RgkOFrQvzU+1LNclUcCokZVihut07Xaji/nLiy7K2rHvJxHTk9izR+8AMPK6BDXDnISKK51wAVJiGeVoyljhhgWowr/nKZrVm08vOxKOzZYZcOiR1sRK3AL7E7e8L9hTrelhBEan/K0z4YaCRlqWQ4WyvkpEJ30V+D48hZqMnLs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758230189; c=relaxed/simple; bh=1hwWQkXg0mws8PjElqjxpMsAUmyOGjqz1fTxScdIq6I=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=s3YMgf9Kdd5qYw3KqO1KMxE/Yy3Y0rq3WDWZp57Z0jdfH0GgWG7q2Uj4dDIVmsgoughtm5i1JkCily2De135bDZ5pTzBgyDwjc6L4/96bWmYTST/UKPiz8IdhxlG12S9fYYUqnzeTgF1XONDKFwF/V0gFzprAcNcNTVf2x3wWp4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com; spf=pass smtp.mailfrom=microchip.com; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b=qI4EYjYq; arc=none smtp.client-ip=68.232.153.233 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=microchip.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=microchip.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="qI4EYjYq" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1758230189; x=1789766189; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=1hwWQkXg0mws8PjElqjxpMsAUmyOGjqz1fTxScdIq6I=; b=qI4EYjYqCghpQsrQ4O5QgDZjKGUVC/+OIjaf4FPa01PFc3vQ6cVg6K2v /YBBaBdQVwfQuvVRFz152aAWwuL3H2wTVkX91wt9bEVNwO6EJU7jMJ4oy VcEiwYmhiqxWHCW0x4Ic1HRkNHtqCu/BSkhF4BIr1Hw5gJizjjf4XJxXH QHaamKb1rKBRggGrmitcv1rtFHUBVSoPhrZNRD14M5bYiIsBgaCCnwmnJ 5Y0pRQ/BYMBMkraA00cXwCYobc8CY468V4JH42ncRFKHZTPyW0YT+ThYq oJcr/0gf1G3R2O12/+03jjvTES73UB56y79WbzL1Xm9zqNPvTZsNF9gBR g==; X-CSE-ConnectionGUID: 31sRM3ybQuOqhqj3gb2ViA== X-CSE-MsgGUID: WUC3l1bMTKia6RDJacDqUw== X-IronPort-AV: E=Sophos;i="6.18,276,1751266800"; d="scan'208";a="278071376" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa5.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 18 Sep 2025 14:16:22 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.58; Thu, 18 Sep 2025 14:15:51 -0700 Received: from ryan-Precision-3630-Tower.microchip.com (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.58 via Frontend Transport; Thu, 18 Sep 2025 14:15:51 -0700 From: To: , , , , CC: , , , , "Ryan Wanner" Subject: [PATCH v4 02/31] clk: at91: pmc: Move macro to header file Date: Thu, 18 Sep 2025 14:15:44 -0700 Message-ID: <0e9bd3a3aaf4c3168a78f95625eb0e1beb07d35d.1758226719.git.Ryan.Wanner@microchip.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Ryan Wanner Move this macro to the header file as it is used by more than one driver file. Signed-off-by: Ryan Wanner --- drivers/clk/at91/pmc.h | 3 +++ drivers/clk/at91/sama7d65.c | 3 --- drivers/clk/at91/sama7g5.c | 3 --- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/clk/at91/pmc.h b/drivers/clk/at91/pmc.h index 4a416d227c50..16c2559889aa 100644 --- a/drivers/clk/at91/pmc.h +++ b/drivers/clk/at91/pmc.h @@ -23,6 +23,9 @@ .hw =3D (h), .name =3D NULL, .fw_name =3D NULL, .index =3D -1, \ }) =20 +/* Used to create an array entry identifying a PLL by its components. */ +#define PLL_IDS_TO_ARR_ENTRY(_id, _comp) { PLL_ID_##_id, PLL_COMPID_##_com= p} + extern spinlock_t pmc_pcr_lock; =20 struct pmc_data { diff --git a/drivers/clk/at91/sama7d65.c b/drivers/clk/at91/sama7d65.c index 7dee2b160ffb..ec2ef1a0249a 100644 --- a/drivers/clk/at91/sama7d65.c +++ b/drivers/clk/at91/sama7d65.c @@ -432,9 +432,6 @@ static struct sama7d65_pll { }, }; =20 -/* Used to create an array entry identifying a PLL by its components. */ -#define PLL_IDS_TO_ARR_ENTRY(_id, _comp) { PLL_ID_##_id, PLL_COMPID_##_com= p} - /* * Master clock (MCK[0..9]) description * @n: clock name diff --git a/drivers/clk/at91/sama7g5.c b/drivers/clk/at91/sama7g5.c index 1340c2b00619..713f5dfe7be2 100644 --- a/drivers/clk/at91/sama7g5.c +++ b/drivers/clk/at91/sama7g5.c @@ -343,9 +343,6 @@ static struct sama7g5_pll { }, }; =20 -/* Used to create an array entry identifying a PLL by its components. */ -#define PLL_IDS_TO_ARR_ENTRY(_id, _comp) { PLL_ID_##_id, PLL_COMPID_##_com= p} - /* * Master clock (MCK[1..4]) description * @n: clock name --=20 2.43.0