Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp123737rdb; Thu, 21 Dec 2023 04:53:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IGIgOzIAvxztTU8togcfpfPdjOebmxGTdj1PAXO0xMPqZawcXHQ2tMF/h0BiXkQ8yRIuo/n X-Received: by 2002:a50:ba8e:0:b0:552:5a3a:cc4b with SMTP id x14-20020a50ba8e000000b005525a3acc4bmr8176756ede.27.1703163219841; Thu, 21 Dec 2023 04:53:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703163219; cv=none; d=google.com; s=arc-20160816; b=FcuMu+ZCxryuLPFx6h+NxrE4bDPCNMrAqqlBHSWsfhR9XG1OQO5eEaOqNF+t9n2pT3 HSB6quFukhgR6OFJS9CWCsqXpZXRC+Jir3AW5zQ3BwxvBPQUZGPmb+BTKmaCwthBdhq9 hpCFdTuQ1FFKm4fwmKaQP7AntU+Yt8eiGfv33qs1ieXetBTDKX5oQ2asTVHnx5lPBCpm 6y5x6rUISWxRqFHzXYKuRprtl4xEui7xsa1w+NGDPz8NYnzAdsf2DN0X00l9zHZb1zOL CGLXf099etc+gczumcw5u74/+TQx4Vkiomlu9RLsNahps2eE4VdnR3wAqAoRMSXsnN+I EuOA== ARC-Message-Signature: i=1; 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=B+XEMKHMJUnNXoTd2gepP9Lx7zj9hEPoSPP/aCule9Y=; fh=tj3vwvS1joPqVAqhm025RI9FzN3aC+9rlGGIIVsXGr8=; b=XZh7WvBlmGcy2DLbbQbZTfr4suJHN7zQMcykI6PjGrTCbzxoonsDfpGbT1oVjaxTqS bYoiqk4IWs9V/pKy4fGRnyKVqRZDQ2URtQu3w6z0gg3NgWIItFafzRmZZSu5Xae50ur5 0j9BdyoycMEtY0g4Qn2JqrozVLEhGSfZ52kQ3c6o9flLmDFLqmi6+D4f8tIQPorJjvZj 87D7PwDAzQ5T0fbXHwNMoo0gymh9IR0jRgSAWgNxRX/WRHsAjEM4ob6U8FuIa3i0/y75 cLdV5pGjFaitbX1W6nfchiFvbFRXaGXxxBZEP6T2+JrWYUdi5ZKT9bL1n3satnVjZwJC HgIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=JspRYnmA; spf=pass (google.com: domain of linux-kernel+bounces-8388-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8388-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id c20-20020a05640227d400b0055344c8cfccsi845148ede.567.2023.12.21.04.53.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 04:53:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8388-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=JspRYnmA; spf=pass (google.com: domain of linux-kernel+bounces-8388-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8388-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 95C401F26365 for ; Thu, 21 Dec 2023 12:53:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AF6C97AE97; Thu, 21 Dec 2023 12:48:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="JspRYnmA" X-Original-To: linux-kernel@vger.kernel.org Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 A49D873179; Thu, 21 Dec 2023 12:48:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1703162926; bh=/tP0vOAcAPktGngh+MT0OZObQF+qtxH8HNQl/CdWeXc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JspRYnmAD49OSoc7E/ls2xadn/4qZ1yf84DDeK4ry7w6vz7aLjgsOOq0NC+cJYuhi lhx+4Hazgdr4BXudJdZcehwWLsuJRGQ7q4xGPrfmPzEV+EmT2rHoqiWdrKPWhRtd/C xKirkwG6PyHT+6g80f/H3h1TA7GVxZqqsM1bEtMs1csSpnDKLT0+FZExUfSHSUw/Ns WkMi8dw1xzMGMU9R5OxshZsgAKEQlHC0JuaO9r7IeQ+OehWQYo8xs1pgxNvJ6xOkIt 4QHiIr/lAISzs2awTTF8bX2TbS0siDPWezpnFlxgvjcRDEzAh2U4qKviSBGcK2NTQ9 j3NjH3XPrmXgw== Received: from IcarusMOD.eternityproject.eu (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madrid.collaboradmins.com (Postfix) with ESMTPSA id AC41B3782001; Thu, 21 Dec 2023 12:48:45 +0000 (UTC) From: AngeloGioacchino Del Regno To: daniel.lezcano@linaro.org Cc: rafael@kernel.org, rui.zhang@intel.com, lukasz.luba@arm.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, AngeloGioacchino Del Regno , kernel@collabora.com Subject: [RFC PATCH 18/26] thermal/drivers/kirkwood: Migrate to thermal_zone_device_register() Date: Thu, 21 Dec 2023 13:48:17 +0100 Message-ID: <20231221124825.149141-19-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231221124825.149141-1-angelogioacchino.delregno@collabora.com> References: <20231221124825.149141-1-angelogioacchino.delregno@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The thermal API has a new thermal_zone_device_register() function which is deprecating the older thermal_zone_device_register_with_trips() and thermal_tripless_zone_device_register(). Migrate to the new thermal zone device registration function. Signed-off-by: AngeloGioacchino Del Regno --- drivers/thermal/kirkwood_thermal.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/kirkwood_thermal.c b/drivers/thermal/kirkwood_thermal.c index a18158ebe65f..a9ccb27b5906 100644 --- a/drivers/thermal/kirkwood_thermal.c +++ b/drivers/thermal/kirkwood_thermal.c @@ -59,6 +59,10 @@ static const struct of_device_id kirkwood_thermal_id_table[] = { static int kirkwood_thermal_probe(struct platform_device *pdev) { + struct thermal_zone_device_params tzdp = { + .type = "kirkwood_thermal", + .ops = &ops + }; struct thermal_zone_device *thermal = NULL; struct kirkwood_thermal_priv *priv; int ret; @@ -71,8 +75,8 @@ static int kirkwood_thermal_probe(struct platform_device *pdev) if (IS_ERR(priv->sensor)) return PTR_ERR(priv->sensor); - thermal = thermal_tripless_zone_device_register("kirkwood_thermal", - priv, &ops, NULL); + tzdp.devdata = priv; + thermal = thermal_zone_device_register(&tzdp); if (IS_ERR(thermal)) { dev_err(&pdev->dev, "Failed to register thermal zone device\n"); -- 2.43.0