From nobody Thu Nov 14 06:35:59 2024 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2306C64EC7 for ; Tue, 28 Feb 2023 11:24:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231670AbjB1LYd (ORCPT ); Tue, 28 Feb 2023 06:24:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231555AbjB1LYJ (ORCPT ); Tue, 28 Feb 2023 06:24:09 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C785B55AA for ; Tue, 28 Feb 2023 03:23:30 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id v16so6528716wrn.0 for ; Tue, 28 Feb 2023 03:23:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1677583410; 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=MVdgWpAFCojRfEmtrK5jCjMCpct5NgUpVAZqrr++Uhs=; b=GBsd0NXNUhijxeivp3xGCAeUf73T7L6PKR4bCS5NvI/hSzveAraHZExaJQ6eSdvL0p CCk/GCypFfO/BKSb8RDnPRl43C4TTnUrHGeG0YiJ6qYWLdvpH9IqnHDBELKadVvv+fdW zmEt7DqPl7XIK1GVjZ9SRo51pthKNx3qye9N5MsR+x2SWD7ccn49oggJYYQr2ddjz2r4 r5yvaZ8KGHhywMSJrWS9a0qRxxCWOrNKnDL136X558eLDSldq7nd2dAUGVW7CBuhO0d3 cFBF11QxpLcnLF70DFiFjUyDU0WikxilpXJDwe9A6A754G2sb5YOnSm1mQgO+a3qkc1x JTxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677583410; 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=MVdgWpAFCojRfEmtrK5jCjMCpct5NgUpVAZqrr++Uhs=; b=rEChwFiuj7eM65OeyR6fJff+MySuuNP/9vJlu5nM5pP3WDttvP66Wn3lH1gIWder6S Wjtrk251L5imzedvUIBveu3IRKyl+tTklwspT/decT1wCqrn9fzOIPY3peY5Ow7gwzAA xH6bvt2H/mEzbIZaRHuAhQzpYHfXLPHpQd4q6E8pPY+s7L36OjDzLZmRxOn+LdKAZbHi 5G20lpngIoIPmFlsK8wVksDHGNHJodpmFEghuRcn7+lgwS9bvuGAArdRanKgzfr6uCrw 5kGTkAbRUFe1SbGYQM+z5Z8yS4UAUiy7IQKWBV43/o5O2DTi66jzOlJIBaXcKx686mKm PqRA== X-Gm-Message-State: AO0yUKVev5wtkoVZwo51XOP7PYdWGaQ1X7zDOTHwaUkAVx9XNn0ijxqq qGe3hJ/3atUZ0lcVBA0NGgnmPw== X-Google-Smtp-Source: AK7set/Ed4065AhzmY6aCza8xR3sE1ZRpBzfxfCB21rhprs5f/Z6scpfE2HJxOG/un2wkPzfUvhwPA== X-Received: by 2002:adf:e545:0:b0:2c7:cdf:e296 with SMTP id z5-20020adfe545000000b002c70cdfe296mr1758873wrm.66.1677583410296; Tue, 28 Feb 2023 03:23:30 -0800 (PST) Received: from mai.box.freepro.com ([2a05:6e02:1041:c10:6830:6390:2815:b6a5]) by smtp.gmail.com with ESMTPSA id z5-20020a5d6545000000b002c5501a5803sm9598130wrv.65.2023.02.28.03.23.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 03:23:29 -0800 (PST) From: Daniel Lezcano To: rafael@kernel.org, daniel.lezcano@linaro.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Amit Kucheria , Zhang Rui Subject: [PATCH v4 11/19] thermal/drivers/spear: Don't use tz->device but pdev->dev Date: Tue, 28 Feb 2023 12:22:30 +0100 Message-Id: <20230228112238.2312273-12-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230228112238.2312273-1-daniel.lezcano@linaro.org> References: <20230228112238.2312273-1-daniel.lezcano@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Use the spear associated device instead of the thermal zone device which belongs to the thermal framework internals. Signed-off-by: Daniel Lezcano --- drivers/thermal/spear_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/spear_thermal.c b/drivers/thermal/spear_therma= l.c index 653439b965c8..6e78616a576e 100644 --- a/drivers/thermal/spear_thermal.c +++ b/drivers/thermal/spear_thermal.c @@ -137,7 +137,7 @@ static int spear_thermal_probe(struct platform_device *= pdev) =20 platform_set_drvdata(pdev, spear_thermal); =20 - dev_info(&spear_thermal->device, "Thermal Sensor Loaded at: 0x%p.\n", + dev_info(&pdev->dev, "Thermal Sensor Loaded at: 0x%p.\n", stdev->thermal_base); =20 return 0; --=20 2.34.1