From nobody Thu Nov 14 04:04:51 2024 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) (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 DB971192D62 for ; Wed, 11 Sep 2024 12:11:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=210.118.77.12 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726056720; cv=none; b=B5KjP42RpkVfaQVkBXp30jfy0azi5pgPRVDsq9B75lkDJa3KE9BdZuBF93trrgXlQr9YDDq8zKNBgpcka5QuwrQUKeuPkihPdwwbTjO/zICEAi2Jh1aKukchii205uhcbxH65MInnGciwBBpDS0rcV4hwr7XSAY5sTjm2UP2eIc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726056720; c=relaxed/simple; bh=ozQqRLSq7IDjYDABSRGssFY6xGkaa/o/USWejNvQnV8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:MIME-Version: Content-Type:References; b=acJZyxF7iI4e09ODRgHKmJKYGmH9bEaVXo8rW99zavzoUStvgVHlrzLHD4yjF0lJR6qvLV3C0in9NhvM2X+ZNnavHcxoQ8VlOvxcrjrGv58NjoAODb3uEkE7TG2CCqB67ZQ+Tha6/simaSbmZj69qMosfvLj/0uM/4bCHS0/lqM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=bulYgyZV; arc=none smtp.client-ip=210.118.77.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="bulYgyZV" Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20240911121157euoutp02f437e7d3a01500bbfe46939a1f079e06~0L3BuKwQ50204402044euoutp02i for ; Wed, 11 Sep 2024 12:11:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20240911121157euoutp02f437e7d3a01500bbfe46939a1f079e06~0L3BuKwQ50204402044euoutp02i DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1726056717; bh=Y23/WQ9wTzL9cT2j+ezI3cB32JYq7m7BkHPWsCs5IOo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bulYgyZVce1V8YvoXr78iLNm5Hg1K+qcUUX3D7xewHyjXk8ABm5y8jvAjFltKzZuC zuFjj4EIACqmJRbmN7BAMdQ2/UD583WC9+9MQDofwnUR7pN6KJo7p0asMUACfz93AF Ip0yhRjbyhlXJsSfuLn+izbE/h6jXEWLxCYyYHso= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20240911121156eucas1p20fb94f4f1119dd274889d7e029d9c14c~0L3BL0Iqr2873128731eucas1p2S; Wed, 11 Sep 2024 12:11:56 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id D7.D1.09624.C0981E66; Wed, 11 Sep 2024 13:11:56 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20240911121155eucas1p160223d89bff83a89a03c5447252f44a9~0L3AmQ4Yr1357913579eucas1p1s; Wed, 11 Sep 2024 12:11:55 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240911121155eusmtrp2d48ce6715ada201ca38692c9112d690d~0L3AlEb2u2688526885eusmtrp2e; Wed, 11 Sep 2024 12:11:55 +0000 (GMT) X-AuditID: cbfec7f2-bfbff70000002598-9e-66e1890c2e03 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 7C.E9.14621.B0981E66; Wed, 11 Sep 2024 13:11:55 +0100 (BST) Received: from AMDC4515.eu.corp.samsungelectronics.net (unknown [106.120.51.28]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240911121154eusmtip1fb836354b159274484cd7bc4a3684392~0L2-cRo5h0847908479eusmtip1j; Wed, 11 Sep 2024 12:11:54 +0000 (GMT) From: Mateusz Majewski To: linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Mateusz Majewski , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Rob Herring , Conor Dooley , Alim Akhtar , Sam Protsenko , Anand Moon , Marek Szyprowski Subject: [PATCH v4 4/7] drivers/thermal/exynos: reuse data->temp_mask in exynos_tmu_update_temp Date: Wed, 11 Sep 2024 14:11:27 +0200 Message-ID: <20240911121136.1120026-5-m.majewski2@samsung.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240911121136.1120026-1-m.majewski2@samsung.com> 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-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCKsWRmVeSWpSXmKPExsWy7djP87o8nQ/TDK5uErN4MG8bm8X3LdeZ LNbsPcdkMe+zrMX8I+dYLc6f38BusenxNVaLy7vmsFl87j3CaDHj/D4mi3Ubb7FbLGxqYbeY eGwys8XaI3fZLeZ+mcps8X/PDnaLJw/72C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VwMAAA== X-CMS-MailID: 20240911121155eucas1p160223d89bff83a89a03c5447252f44a9 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20240911121155eucas1p160223d89bff83a89a03c5447252f44a9 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20240911121155eucas1p160223d89bff83a89a03c5447252f44a9 References: <20240911121136.1120026-1-m.majewski2@samsung.com> Both the intention and the actual logic is identical, little point in duplicating it. Signed-off-by: Mateusz Majewski --- drivers/thermal/samsung/exynos_tmu.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/thermal/samsung/exynos_tmu.c b/drivers/thermal/samsung= /exynos_tmu.c index 8b1014915c31..9bddf9fd5049 100644 --- a/drivers/thermal/samsung/exynos_tmu.c +++ b/drivers/thermal/samsung/exynos_tmu.c @@ -357,15 +357,10 @@ static void exynos_tmu_update_bit(struct exynos_tmu_d= ata *data, int reg_off, static void exynos_tmu_update_temp(struct exynos_tmu_data *data, int reg_o= ff, int bit_off, u8 temp) { - u16 tmu_temp_mask; u32 th; =20 - tmu_temp_mask =3D - (data->soc =3D=3D SOC_ARCH_EXYNOS7) ? EXYNOS7_TMU_TEMP_MASK - : EXYNOS_TMU_TEMP_MASK; - th =3D readl(data->base + reg_off); - th &=3D ~(tmu_temp_mask << bit_off); + th &=3D ~(data->temp_mask << bit_off); th |=3D temp_to_code(data, temp) << bit_off; writel(th, data->base + reg_off); } --=20 2.45.2