Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp332606lqs; Tue, 5 Mar 2024 03:33:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW4MrBcIFnq4ROz6CswKLbEAx9sI7dwxFe0To7VApRBtETZxpT+gXgL/up9lT7mKq0G0L+si1WU+cKrGd4kkydreFFhK8vHidYZHganoA== X-Google-Smtp-Source: AGHT+IELI03e+3Pli2ot9MTvwVxqo5zrSM+8Svoy4PpdUrbmQQT6aUqq46EHJWIQ52EMuY8Ea2OK X-Received: by 2002:a17:906:16ca:b0:a45:62bc:6b0a with SMTP id t10-20020a17090616ca00b00a4562bc6b0amr3181492ejd.65.1709638427251; Tue, 05 Mar 2024 03:33:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709638427; cv=pass; d=google.com; s=arc-20160816; b=rKpgA0nlWxv3cZsHD1z19SROJ62Gd+LW6mMtxwDdhgvdBFpklBOKBu3m8+IkDw7aS8 l7Eft+nVPJfsMwrZaBj0sa9EcplHrLoDPSqci179bRd+H0NbagIizxbWvO7luAOairKt dkeKnfcQZ7u2GdqRKMotJW3t6FuBs/bdSRBSnrcazu7dNdRICF+p8mM1wkY4CC9EzQlC 1xBlbd73HSvHdi8sSRohsLO6sGcjs3L7CdLC6B3bQGAnvMFlTVh0ABpouJ7lsjBoZJib eqAwQY7YZ+coDmYdvg/30omLurIJW2Jc30hdyJDQ1f1BCxM/gusDZ6emr1y3Yf0GYDhX 24Rg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=nQR4+tbmlqxmcDyTXYy7qzdcirw7urmLSvidFnq1uxU=; fh=gTTlLjRtR9em6BUXVtOIVuzM4+xeWy0BwL6JM0N7+Tw=; b=oe7GKMPJMnMSsmAXzif5eo0T7nvU0eH2/G0vnFdfz5y7eH6YKcVScNA5nZl3mkKz8r IDWicX9hQO3t6tqi4O+pGJG2gG6YxI8Mj/DXo6lfLpcqeIpd7bbfNA6eIOg4QvE3PPYj z6bNMnMG31mCgkYRv4kF+rTnybsiRs8xoodtpT+VmQghNiesu7/cPkjRhJyBkXpSxluG LMG0bOIECCPQIHu0PHbU0BWlA/uCeM0Xx9KnTSXE0GceZGXxS1IjMaO8zhjiOUELgC9U l832vSsvdh5Z2DWnWqSWnw2hWfZgD1Ynfgd1K6O7KeHCpjvdsiPxIbtMXhnQRL2j+x1t D0Yw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@rjwysocki.net header.s=dkim header.b=sPUzEEsY; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net); spf=pass (google.com: domain of linux-kernel+bounces-92285-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92285-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id n9-20020a1709061d0900b00a43bf131ffdsi5101078ejh.541.2024.03.05.03.33.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 03:33:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92285-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=fail header.i=@rjwysocki.net header.s=dkim header.b=sPUzEEsY; arc=pass (i=1 spf=pass spfdomain=rjwysocki.net); spf=pass (google.com: domain of linux-kernel+bounces-92285-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92285-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id C5D561F2B89D for ; Tue, 5 Mar 2024 11:33:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 28B6F55C2E; Tue, 5 Mar 2024 11:32:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=rjwysocki.net header.i=@rjwysocki.net header.b="sPUzEEsY" Received: from cloudserver094114.home.pl (cloudserver094114.home.pl [79.96.170.134]) (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 24A585A4CA; Tue, 5 Mar 2024 11:32:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=79.96.170.134 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709638334; cv=none; b=EZaNl6wrd/EzLtBK6LrUrHv+PtZrln728VRk4vZu7hTe9vP5dl4XyJH89EEHkSpnsu+mgTGoJjHILKD8NzCQCqAagh+1NMzCVFUGiI34WOlQBePmbN7FOsMIYMy3fiLmuWwQ2I/WZF/SyYKmcqU2tgtbi8Vupmefh9hWbpzXrQo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709638334; c=relaxed/simple; bh=8bl4HrCXQqQhmGUX17Z5ko4AOGeK9Ujk1PJ+PZmCZhc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=AiMLaK4hypASa+QwCqGT3/UW7RleRPT9Kec4vcU3X0UTQrnzyhvux4NoV+tPFCLwLqwqTQHeuN/qrKo7fj22PTyatvXSGhXAGTXD0mSDIhNIac9Sw9YTlmog6AgL1+iDcswh37Mbp5QHdQ8YSzsMlSxYfkvTLSZVQCOu5gKZdHQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rjwysocki.net; spf=pass smtp.mailfrom=rjwysocki.net; dkim=fail (2048-bit key) header.d=rjwysocki.net header.i=@rjwysocki.net header.b=sPUzEEsY reason="signature verification failed"; arc=none smtp.client-ip=79.96.170.134 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=rjwysocki.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=rjwysocki.net Received: from localhost (127.0.0.1) (HELO v370.home.net.pl) by /usr/run/smtp (/usr/run/postfix/private/idea_relay_lmtp) via UNIX with SMTP (IdeaSmtpServer 5.4.0) id 759bb0c3c76c11ab; Tue, 5 Mar 2024 12:32:09 +0100 Received: from kreacher.localnet (unknown [195.136.19.94]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cloudserver094114.home.pl (Postfix) with ESMTPSA id 5633266AA28; Tue, 5 Mar 2024 12:32:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=rjwysocki.net; s=dkim; t=1709638329; bh=8bl4HrCXQqQhmGUX17Z5ko4AOGeK9Ujk1PJ+PZmCZhc=; h=From:To:Cc:Subject:Date; b=sPUzEEsY0iWNzokEocriV84S79KM71+LSCm8wZsHRxw+BG7f0pcKvlt0NLEwKaQg9 Vlb0n4coN0F/tBxHF8BC/Z+0fVB9zMCiP0H86xympHYc10Vl8zWO56kkSJGH7IOPck MPNm+X+OS4rw+eReWTx9VCwQiSP5gxU4k28FqbDl4+CG0QVQpA8AAlWE/e9tldmQAH 58z8kuOv7Bj0cUbVn/J7YQN3SrjLyBw4a7jN60tejWR96KJadMpksN2bRX4/gj1FrK +6n1rWpLLKGtIsbeNzjeDcrVe+tuEhBfBMnWTmzWnkduwKpYdf6ESzKTTH1H6NITBP wgn+vRQTEcZ+w== From: "Rafael J. Wysocki" To: Linux PM Cc: LKML , "Rafael J. Wysocki" , Lukasz Luba , Daniel Lezcano , Zhang Rui , Srinivas Pandruvada , Stanislaw Gruszka Subject: [PATCH v1] thermal: intel: int340x_thermal: Use thermal zone accessor functions Date: Tue, 05 Mar 2024 12:32:09 +0100 Message-ID: <2724753.mvXUDI8C0e@kreacher> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" X-CLIENT-IP: 195.136.19.94 X-CLIENT-HOSTNAME: 195.136.19.94 X-VADE-SPAMSTATE: clean X-VADE-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvledrheelgddviecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfjqffogffrnfdpggftiffpkfenuceurghilhhouhhtmecuudehtdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefufffkggfgtgesthfuredttddtjeenucfhrhhomhepfdftrghfrggvlhculfdrucghhihsohgtkhhifdcuoehrjhifsehrjhifhihsohgtkhhirdhnvghtqeenucggtffrrghtthgvrhhnpeffffffkefgheehffelteeiveeffeevhfelteejvddvieejjeelvdeiheeuveeuffenucfkphepudelhedrudefiedrudelrdelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleehrddufeeirdduledrleegpdhhvghlohepkhhrvggrtghhvghrrdhlohgtrghlnhgvthdpmhgrihhlfhhrohhmpedftfgrfhgrvghlucflrdcuhgihshhotghkihdfuceorhhjfiesrhhjfiihshhotghkihdrnhgvtheqpdhnsggprhgtphhtthhopeekpdhrtghpthhtoheplhhinhhugidqphhmsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdhrtghpthhtoheprhgrfhgrvghlsehkvghrnhgvlhdrohhrghdprhgtphhtthhopehluhhkrghsiidrlhhusggrsegrrhhmrdgtohhmpdhrtghpthhtohepuggrnhhivghlrdhlvgiitggrnhho sehlihhnrghrohdrohhrghdprhgtphhtthhopehruhhirdiihhgrnhhgsehinhhtvghlrdgtohhm X-DCC--Metrics: v370.home.net.pl 1024; Body=8 Fuz1=8 Fuz2=8 From: Rafael J. Wysocki Make int340x_thermal use the dedicated accessor functions for the thermal zone device object address and the thermal zone type string. This is requisite for future thermal core improvements. Signed-off-by: Rafael J. Wysocki --- drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Index: linux-pm/drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c =================================================================== --- linux-pm.orig/drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c +++ linux-pm/drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c @@ -58,7 +58,8 @@ static int int340x_thermal_set_trip_temp static void int340x_thermal_critical(struct thermal_zone_device *zone) { - dev_dbg(&zone->device, "%s: critical temperature reached\n", zone->type); + dev_dbg(thermal_zone_device(zone), "%s: critical temperature reached\n", + thermal_zone_device_type(zone)); } static inline void *int_to_trip_priv(int i)