Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2303771rwl; Thu, 13 Apr 2023 04:49:51 -0700 (PDT) X-Google-Smtp-Source: AKy350bXB0SV7JlVjw0LjpJbmDzBcNX+AcjkTTNgVGONFdMonKYaILvKRpp4m+hS4pJXLPyD2DYi X-Received: by 2002:a17:906:b02:b0:94a:5361:fe4e with SMTP id u2-20020a1709060b0200b0094a5361fe4emr2434313ejg.63.1681386591042; Thu, 13 Apr 2023 04:49:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681386591; cv=none; d=google.com; s=arc-20160816; b=a7fF45n5K4NgYH99jTsPnveVVenXGROelfPScyTlhB0yFwhUsqccgsqapPWCwk6xR1 m7lsvLRl+lbCik8Bl0bh6Dp8ImLdf38S1tQPoQ6jz4F0LBf5URm8uiIcgBrXQyy/gPXR h3gFX/iujrBusFxNWhSANt6m3cNfDA50hsZHC+Nq7SfuuVcMfGQQ0h80rxyCYfBw1UIC Rq+YgkZcTzuL8Sh4D7MGjEi8XDELCxMPzA/Xs92pbrdNKOwjLL6n3eIEpPp3QTiRzSv9 1rsN9lImIg8mL0k1fsS0spfJk1SXNOXQLm6CaXUbCUMzprXULLc4dtajF254d2bFooyO KJoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3AD5Mv81x1OfSGYx8Typ89SsCtnJrhePS3JykvPhl6k=; b=ucSF6V7qq+7JbDbRo7INQZMnIvp8iMgHd7f+l81zKF+g/5LqtchC1okZ1ApP6aqjLh ybyGHYSjaNPMdkn1U7LOp/R0VGR36UVoGN71XgEBcYKTbEgyoX0NT4u7toUTPf6iSZSX 0E2NdBsunkuSnVRb0P5kPZWkNX0OBQdY0Rck21p1RX8CHuIcUOLIGvquQP24lKD5Iwzy iepEzrjIMoJ4lEy95Qn0Ew500F/qVsfBmv3Hxhi+XEn1xTpzqBoAEh8P0F6xEEMILnt0 yZI0dheUUXzqdrLqk42NgejFfMHdPYae5AAZhbVVc9w4hgHp5Ag+aIbSseF8MOTB32A8 Ds3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R+IWqIXQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w16-20020a170906481000b0094e8382c1dbsi1619942ejq.933.2023.04.13.04.49.25; Thu, 13 Apr 2023 04:49:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R+IWqIXQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230406AbjDMLrE (ORCPT + 99 others); Thu, 13 Apr 2023 07:47:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230213AbjDMLq7 (ORCPT ); Thu, 13 Apr 2023 07:46:59 -0400 Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 672AC93C5 for ; Thu, 13 Apr 2023 04:46:56 -0700 (PDT) Received: by mail-wm1-x329.google.com with SMTP id he11-20020a05600c540b00b003ef6d684102so6158385wmb.3 for ; Thu, 13 Apr 2023 04:46:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681386415; x=1683978415; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=3AD5Mv81x1OfSGYx8Typ89SsCtnJrhePS3JykvPhl6k=; b=R+IWqIXQjMrTORnXHQ/dbbWc/32x3W0LfqaNkiqXhr0Wti8JO4WnUrnFok8jp0nLsd OjkTjLPKbFSnra9XHlHWb1vLwnzPrxgk0kIoI97S35LTdHFD2zLLISaWc5B43q3T+QRe PkWCFNR4YpOTAUA4GRrw2BPL6A/YnWefg4uhb9s4ukBh5jpsKaUxVltnaE90lrnl6/bH nCeD7nb6MkKcxry5iir+1zIlXK6zw4V+SfBEm2DOvBRpYamqaSOy+Sq/0qxWs+BQKbxR 7hBPYVEpTI2ueafA/Gs2hqipcOrp9WIroOdpzuvRx8OucrA2Fi2xBa9MkhjHaN4cr+iw DKQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681386415; x=1683978415; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3AD5Mv81x1OfSGYx8Typ89SsCtnJrhePS3JykvPhl6k=; b=ks5vdX98bK4BMRVBmwPtatqer2LmafsEnEvmaMNuBHXTma7Fygg8r680ewv2ISpQ4s 80TMtsdYL0J+N0ksBrjKcJRzPV9tKHj6stZ+HBH+M0cktBSiAF20IoObqe03eSEIQObM UDYopVdxqqe0zs4Iua+SA1ugwQuEj+pbPGcVry86+XtHlWbirGNSQLYaX2uDe93chi7L 41dgmSegAjVI45BmOcLMOvvAy05GijxT1gsfLmPca11HKC4RUs6piNWdtRDZbO4uDNeS nRgtxLse9syTONPi/zBk5hcpyUcjeCDDqHfKj4Mo29tq1Db6JpuNiQ+j+DoZvaGeZgwE /wlg== X-Gm-Message-State: AAQBX9d/VM+ocz3vfAGr+mkpNS8xzzkCPiLUn+VsFJuLxGef+jumpgoe w0tCvqE54C4xAy8y/np51GMsaQ== X-Received: by 2002:a05:600c:c5:b0:3ed:8780:f265 with SMTP id u5-20020a05600c00c500b003ed8780f265mr1519565wmm.21.1681386414778; Thu, 13 Apr 2023 04:46:54 -0700 (PDT) Received: from mai.box.freepro.com ([2a05:6e02:1041:c10:6418:c878:b0e:d11b]) by smtp.gmail.com with ESMTPSA id iz11-20020a05600c554b00b003f09aaf547asm6730590wmb.1.2023.04.13.04.46.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Apr 2023 04:46:54 -0700 (PDT) From: Daniel Lezcano To: daniel.lezcano@linaro.org, rafael@kernel.org Cc: rui.zhang@intel.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Amit Kucheria , Heiko Stuebner , Kunihiko Hayashi , Tim Zimmermann Subject: [PATCH v3 2/6] thermal/drivers/intel_pch_thermal: Use thermal driver device to write a trace Date: Thu, 13 Apr 2023 13:46:43 +0200 Message-Id: <20230413114647.3878792-3-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230413114647.3878792-1-daniel.lezcano@linaro.org> References: <20230413114647.3878792-1-daniel.lezcano@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The pch_critical() callback accesses the thermal zone device structure internals, it dereferences the thermal zone struct device and the 'type'. Use the available accessors instead of accessing the structure directly. Signed-off-by: Daniel Lezcano --- drivers/thermal/intel/intel_pch_thermal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/thermal/intel/intel_pch_thermal.c b/drivers/thermal/intel/intel_pch_thermal.c index dce50d239357..b3905e34c507 100644 --- a/drivers/thermal/intel/intel_pch_thermal.c +++ b/drivers/thermal/intel/intel_pch_thermal.c @@ -127,7 +127,8 @@ static int pch_thermal_get_temp(struct thermal_zone_device *tzd, int *temp) static void pch_critical(struct thermal_zone_device *tzd) { - dev_dbg(&tzd->device, "%s: critical temperature reached\n", tzd->type); + dev_dbg(thermal_zone_device(tzd), "%s: critical temperature reached\n", + thermal_zone_device_type(tzd)); } static struct thermal_zone_device_ops tzd_ops = { -- 2.34.1