Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp507581lqs; Tue, 5 Mar 2024 08:09:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUDd3PBjq0xyXa9eCVUaZWtSjvlLKbO9dkGsghCt8uxwFEwtuvk+knLaG2ntjQFlLvr2dZy8zTS72y/u4OITSiosWiWymXu3zHkaED8Rw== X-Google-Smtp-Source: AGHT+IGDhScOw9jg2areouyDbqAYLqnvRflDySoOouC8MOHYDGRGXot39oILcp//ooiuv77jjwzw X-Received: by 2002:a17:902:eb8f:b0:1db:ab9c:d33d with SMTP id q15-20020a170902eb8f00b001dbab9cd33dmr2937454plg.9.1709654954602; Tue, 05 Mar 2024 08:09:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709654954; cv=pass; d=google.com; s=arc-20160816; b=TmS9nRps8fFGNRWvUT32LIp+5qntc+5OcjG0AuyRA3OOhAXyhqS8nsIX2WxPW+7VUg Zp+3kQgjmHME31TsO+wFpbXF/z2q0qFD+HOVvt51CBOPPM8sIZAt4YBh0z7FcZXaCSXL rZnM4A7UXWgjEaFAvdwbyTGwp6mcFxxk0kNx+ymp/3u+2mGa4ehuBMatT7Y4nHOaE4hB T/RzuCua6ac7Z/SOh5wkBhtbO+OmDNOIjeGghxOqGernsZYuHxc7nrynx8U5capnpFf2 GQd6dHpV1CM7Gr3ak6d+cOIk2YWkvqiioSgQ4sIP3rfN7izSJ3FtYrNowqfcVyL9bHbl nnhQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=eDrl3N91i6VSsVPwRQLCSDjE2WRbc/dlF+GNZC+fUHM=; fh=2KgRVLrI82yAHUfS/rCgtZtxBtaSTwRNtI4zOjBWwE8=; b=rZ67g0Ja02Kbb6nJIyoD7dlNEo0JRHJ4FbeJfq02J3y7CvhrqrDNDMvp+pwdkGxOQp 2soPY7mlwFyodQDN7MIDpbQ0IOFvb6TQXY1Mpt8nr0QcDhybI9W2XTxkQ6vgk6h1c+/0 Wk+FHpTLJAOZ/tcWyssDU608TUNAfp2zl0F8q0o/JBnRkw0mGH+K0lwPbpgLDfqfD3Wx rAPzcThWhNDzwuf6RGT11e7y+kDw70vJooOHGJbcyXK6yDrAoBMgDrrTKxBuJRXVJmrC nbSqDkRMV4Iag2/AAEFJGqPaWAeEw1NR3SOWtd3nKRIjCbQ2LBTsN7rx8u7kWGaj9WRP A6uw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Wrc1E3ar; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-92561-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92561-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id w4-20020a170902e88400b001dc0e6db066si10594004plg.394.2024.03.05.08.09.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 08:09:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92561-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Wrc1E3ar; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-92561-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92561-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id CFAADB25BD1 for ; Tue, 5 Mar 2024 14:58:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 916A0126F2B; Tue, 5 Mar 2024 14:58:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Wrc1E3ar" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (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 2069585954; Tue, 5 Mar 2024 14:58:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.13 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709650709; cv=none; b=noY2jQtL0098/zfu5pr1o8UU6RFe2sqF4upmwzmADASrEwLtdM0GAdLAIosX/tSBnvOVzVFR26u2b0GSR2lbOdGasFDHWIOMT/fLtkrYzfVlARxYLJVSO5ToH/niPoeKNL82KVancK+qK4EUYaS+yiRCFIeRkV9jeaHjHyxWAU8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709650709; c=relaxed/simple; bh=eDrl3N91i6VSsVPwRQLCSDjE2WRbc/dlF+GNZC+fUHM=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=SMrNIIeu77zV0elfYq/yEKG5QVnEyfAjx/8R268UdKAlpmfz5niEebmANb39tiKGTJA3LmyM55KHE9v1lsfT+uqv7bnPnL+L8ZU26+yne30RXSH69eb2rkzaUacInPn+XHEg2U9VlkEJ1MSuH64QehA5VLAesBQwQwryHoirDQw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Wrc1E3ar; arc=none smtp.client-ip=192.198.163.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709650708; x=1741186708; h=message-id:subject:from:to:cc:date:in-reply-to: references:content-transfer-encoding:mime-version; bh=eDrl3N91i6VSsVPwRQLCSDjE2WRbc/dlF+GNZC+fUHM=; b=Wrc1E3arKi3kKCDADDOpIyO8b1GFvTiw+cRzYvt7L10BAQ4D+dIVULYH UXXIlFSo5031AQsk03LShjU+4UwoB07mHbaeyrl8Qb2j+DtYDfapDR7cw htikCss9vPqrCrCWhfI8HCgRJ3es+72TqH16NsQjMBIWM6rYkTpOGgunE +tFNSsq9Hj5aitTHYhzeouwTOxFoufYi1CYUEPdvthV3k1Nimq6jBjFHb meF5V4bJ4jpNcBPXgK769Jdiki9Y1ptRB2eJLBY/+cBmdDwvXJGgKQCgG /zbXpKwAY3OvytJDWpYqmKsujZ4I1GIiO7696YBHuaXsE5GZkLvnqkL08 g==; X-IronPort-AV: E=McAfee;i="6600,9927,11003"; a="7149805" X-IronPort-AV: E=Sophos;i="6.06,205,1705392000"; d="scan'208";a="7149805" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Mar 2024 06:58:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,205,1705392000"; d="scan'208";a="9345361" Received: from spandruv-desk.jf.intel.com (HELO spandruv-desk.amr.corp.intel.com) ([10.54.75.14]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Mar 2024 06:58:27 -0800 Message-ID: Subject: Re: [PATCH v1] thermal: intel: int340x_thermal: Use thermal zone accessor functions From: srinivas pandruvada To: "Rafael J. Wysocki" , Linux PM Cc: LKML , "Rafael J. Wysocki" , Lukasz Luba , Daniel Lezcano , Zhang Rui , Stanislaw Gruszka Date: Tue, 05 Mar 2024 06:58:26 -0800 In-Reply-To: <2724753.mvXUDI8C0e@kreacher> References: <2724753.mvXUDI8C0e@kreacher> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 (3.44.4-3.fc36) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Tue, 2024-03-05 at 12:32 +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki >=20 > Make int340x_thermal use the dedicated accessor functions for the > thermal zone device object address and the thermal zone type string. >=20 > This is requisite for future thermal core improvements. >=20 > Signed-off-by: Rafael J. Wysocki Reviewed-by: Srinivas Pandruvada > --- > =C2=A0drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c |=C2= =A0=C2=A0=C2=A0 3 > ++- > =C2=A01 file changed, 2 insertions(+), 1 deletion(-) >=20 > Index: linux- > pm/drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- 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 > =C2=A0 > =C2=A0static void int340x_thermal_critical(struct thermal_zone_device > *zone) > =C2=A0{ > -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0dev_dbg(&zone->device, "%s: cr= itical temperature reached\n", > zone->type); > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0dev_dbg(thermal_zone_device(zo= ne), "%s: critical temperature > reached\n", > +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0thermal_zone_device_type(zone)); > =C2=A0} > =C2=A0 > =C2=A0static inline void *int_to_trip_priv(int i) >=20 >=20 >=20