From patchwork Tue Feb 21 18:07:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 60207 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp152074wrd; Tue, 21 Feb 2023 10:11:16 -0800 (PST) X-Google-Smtp-Source: AK7set9y09nI0fF8c6FCXI21K/x0Dg46Fqnht0N6gIOENABBwnI+XuMETKqpIu+2ssaR3JVujDI/ X-Received: by 2002:a17:90b:1a91:b0:234:b964:5708 with SMTP id ng17-20020a17090b1a9100b00234b9645708mr6248650pjb.5.1677003075890; Tue, 21 Feb 2023 10:11:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677003075; cv=none; d=google.com; s=arc-20160816; b=MFH9erRw3u9zQnBSCkboPKEMvP8+YQ/oQXuPykGA8+EHIlryB1cU1lRz+wRxXD5p6L hRKeH9Qu7rUSuH5gp6Bu/W+BHFFm9QD9JJJNJDVUUF14S6tLzFY9R1ARaedt6sq/8wfF Rmc9r/UB1dFq7w13JoClZ/CywXLeps9sH+CJWntYCFsA9POQs4TTYqR9mY2eFc9qJG/5 DgvfdDKaIhBCQg/IMg404X/xx4LgwSJn2Mbw49eEdSDx3JrZBIvjsLb1aKff5UKqqJpt 9VSuLwZ4k35xPwUfb2zIx8y9hkPJdI9Nj2uiff4nafhD42MW9/FgFevDsYDe86aPhK7W c5cg== 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=MVdgWpAFCojRfEmtrK5jCjMCpct5NgUpVAZqrr++Uhs=; b=tuGLSTq5QEiHRJwg43MUGI7vS+MREV/wsfhlL7nVuD+iUtAqDK3bZYxlNog1YHpsY8 1UqDc8Lr7KZGjZRbdSReIc58Mwds1B3tFryODbIxZ953p0d/pcu7xYlySmnId5fuSMRR 3H+RhH5SkdvcW3nhjOxn/vGBfNBP7se9CyhbNoOkeNjYMNoPfBA5/dV1xncOZRP8AcZB C5gdLwlLWeoBbcqS/8S9AZsEonkVVixW5Nlwpr3jTAoFzf0TUz+Dpz9t4M4a8+sYSITt vaf7CWP6qRnW8sDQ63n8n2uAGsJ62VEeTn1XPdS7oZyvnyb595ijZ2Tt2VTIs0FZFg3R T1RQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pW1yNT7Y; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gx20-20020a17090b125400b002369d39671fsi4842052pjb.160.2023.02.21.10.11.03; Tue, 21 Feb 2023 10:11:15 -0800 (PST) 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=pW1yNT7Y; 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 S231907AbjBUSJJ (ORCPT + 99 others); Tue, 21 Feb 2023 13:09:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231929AbjBUSIg (ORCPT ); Tue, 21 Feb 2023 13:08:36 -0500 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D42A82D15E for ; Tue, 21 Feb 2023 10:07:58 -0800 (PST) Received: by mail-wm1-x32c.google.com with SMTP id j2-20020a05600c1c0200b003e1e754657aso4337461wms.2 for ; Tue, 21 Feb 2023 10:07:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=pW1yNT7Ypg9QAveNHmxbuLVe8plx5zHWNfuqnEbVNmVkjEZnMiTHM3RZrGV2APV+zt nIjNeiG8/jhE1NvBaSrrDa8LhWWqZp3/e+M6Ph11H4/o+aUinOTRyMm6ww44anM+S1Pi F/kmLz79x0lFOH137vS5Fi38ai+Fsb7Qj2Y+gvOfrW84VlYmrYRWjQsG4MEMy841oSOi wF+Rp5QnlOrvhQ0e0zz9VWps1u4SARLhAV7Nm97TefGQX/0vvrhsKstdA4IppyymyB6h mEuX4CmpML6PyqvFAO+iWmWOL3f9ttKSMXvZHGObdygGamdmasq3IGshOmIplO7go+z6 hhSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=SBXBFurkQyyaaUuhj4Gpf7wGzkgxNqjGuIMqlMM4bIjnA36Et5cY1LUdotgWL96/U6 5aoj+hE2E6DyTO7S+f4Z2qmn5NEPyN/M9OWtTLKCLLGY8hRezh+wOv/PuPZk66cHM0NH F+3Psru73fEh16zgZIYggzM281asBFUMz6o8V+xQ+Sq8pWaO6FCF54ZIUqEkLDJWnoDX 5YpSTP+6l9IlFOj/k+ZDcza+Ohidg0RKBQ2CAdHIXRxyENrSMhbrjH1LF7v8tgoeWppk KWcNnpkS7eakPjFqOvFFcNS/sMIq+BXKvgmdZdwL/kKjUbn1/e64ehmWhv+zxt/tASt7 roRw== X-Gm-Message-State: AO0yUKXYBdf+I580uzCb2U7JivIN5uZEaxMRrnGpckwM39OY7qpqif6d K4sn79JHz24a3+lvpoVFMasmZA== X-Received: by 2002:a05:600c:4b2f:b0:3df:ee64:4814 with SMTP id i47-20020a05600c4b2f00b003dfee644814mr3493868wmp.20.1677002877095; Tue, 21 Feb 2023 10:07:57 -0800 (PST) Received: from mai.box.freepro.com ([2a05:6e02:1041:c10:1e9:315c:bb40:e382]) by smtp.gmail.com with ESMTPSA id c128-20020a1c3586000000b003e21558ee9dsm5107815wma.2.2023.02.21.10.07.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 10:07:56 -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 v2 07/16] thermal/drivers/spear: Don't use tz->device but pdev->dev Date: Tue, 21 Feb 2023 19:07:01 +0100 Message-Id: <20230221180710.2781027-8-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230221180710.2781027-1-daniel.lezcano@linaro.org> References: <20230221180710.2781027-1-daniel.lezcano@linaro.org> MIME-Version: 1.0 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1758465177491805862?= X-GMAIL-MSGID: =?utf-8?q?1758465177491805862?= 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_thermal.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) platform_set_drvdata(pdev, spear_thermal); - 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); return 0;