From nobody Thu Oct 2 15:18:11 2025 Received: from out-171.mta0.migadu.com (out-171.mta0.migadu.com [91.218.175.171]) (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 A9FD327A124 for ; Mon, 15 Sep 2025 11:57:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.171 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757937426; cv=none; b=ofGeiS3n/3Kh2v5hnSVABLcRlJSFJ/ha/NT2Il9EYXs84UiHpZZ2U2lnYPG+Jvteughu5jmK0dEwUH59fs4Ri15C5QI82VbWCRApfEPHRS/IcJ3HJLSo7ivtAWxuaNYveXwhXZABPJgKCrCAW78JqAgBajJo0C84rGZiIjyCoKY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757937426; c=relaxed/simple; bh=fA4MlAIn7P1pBX/89vOZIi4pnvENU8A6OalvZ9lhyUQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ivFHpzhE5jAAbaFlo7fvMWeJZklRwnGx9EaJZk2NhOzwPjTPcXVKj24/2zvER4FIRHD/kqGqpkMsCW/e6SG1CEzokkjE1nDDYD3/eIfLzS2UJMM0BOILyL0AWTbXYRFrMxXcgNu1ljQldzFiZs+q5n8tU738G9ssoiuqMoKUgx4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=m7lzQF6b; arc=none smtp.client-ip=91.218.175.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="m7lzQF6b" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1757937410; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=JVVGhrqsmL4odmIDg4NNn1VRpJaq1RD433dc/e6m7/I=; b=m7lzQF6bpIU0zWTJt4VYQVIVA5KoWH3Oha1hmVSrZEtMQYWjg3kW7Hm+dYfGTh8JudNVrJ fSL4UxEAOoeJsp2jwXemfRNXbxPh4LGp9Jdd44m4/7CLvDvRzdeGP8Nc/kJm+va1WRSJG8 68Ts/yJrq7PM2lIdeI/peOOK5+IueG0= From: Thorsten Blum To: Dmitry Osipenko , MyungJoo Ham , Kyungmin Park , Chanwoo Choi , Thierry Reding , Jonathan Hunter Cc: Thorsten Blum , linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] PM / devfreq: tegra30: use designated initializers for tegra_actmon_emc_ratio Date: Mon, 15 Sep 2025 13:55:55 +0200 Message-ID: <20250915115554.2150603-2-thorsten.blum@linux.dev> 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 X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Switch actmon_emc_ratios[] to the more modern and flexible designated initializers. This improves readability and allows struct fields to be reordered. Signed-off-by: Thorsten Blum --- drivers/devfreq/tegra30-devfreq.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/devfreq/tegra30-devfreq.c b/drivers/devfreq/tegra30-de= vfreq.c index 4a4f0106ab9d..890990e03335 100644 --- a/drivers/devfreq/tegra30-devfreq.c +++ b/drivers/devfreq/tegra30-devfreq.c @@ -206,13 +206,13 @@ struct tegra_actmon_emc_ratio { }; =20 static const struct tegra_actmon_emc_ratio actmon_emc_ratios[] =3D { - { 1400000, KHZ_MAX }, - { 1200000, 750000 }, - { 1100000, 600000 }, - { 1000000, 500000 }, - { 800000, 375000 }, - { 500000, 200000 }, - { 250000, 100000 }, + { .cpu_freq =3D 1400000, .emc_freq =3D KHZ_MAX }, + { .cpu_freq =3D 1200000, .emc_freq =3D 750000 }, + { .cpu_freq =3D 1100000, .emc_freq =3D 600000 }, + { .cpu_freq =3D 1000000, .emc_freq =3D 500000 }, + { .cpu_freq =3D 800000, .emc_freq =3D 375000 }, + { .cpu_freq =3D 500000, .emc_freq =3D 200000 }, + { .cpu_freq =3D 250000, .emc_freq =3D 100000 }, }; =20 static u32 actmon_readl(struct tegra_devfreq *tegra, u32 offset) --=20 2.51.0