Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp124951rdb; Thu, 21 Dec 2023 04:56:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IEU21+2fWTcOpBSTOMPTTIRntanNRqtGp+ktqp9n6xfNNb1mm+S5+MxL8KkgIMlHdUOmKgU X-Received: by 2002:a05:6358:7e0f:b0:170:17eb:2faa with SMTP id o15-20020a0563587e0f00b0017017eb2faamr471975rwm.35.1703163374762; Thu, 21 Dec 2023 04:56:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703163374; cv=none; d=google.com; s=arc-20160816; b=csw/R9CD6Ck5QfyXIFeHzVWpWShj0xLfgwZyfEXbQpSzoV1OAp+TxtRNQ2Fz5uG6oQ O6boTTC1tPNznGgNQD4q1uSQWfQzHALP5O68jpFOJYQZSlFT7OufCDib3p4NKihGtYfS 6aKnONAolC8kBKfgTmKV3t/0Dxg647afHzA+INtlZl4Z20x8DT6jSz6Y12aQtvpgpONc t4mVkPv4NfJU9YLj9ZUpACgntfZmsMitt6C8woOZ3TjQLpBiqQPHqyz3NttMVIMgdR4P wcNQ5V+V5x5D1p/klr2rHt6aJXvEJk7ykwntVCXP8J7BZN6JPnp14jwu9Ec3bQ2BzQoS QdBw== 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=vKE0YS56ZOrKVc3KYdcf8enzQuY7UZSUbojJdGagHiU=; fh=tj3vwvS1joPqVAqhm025RI9FzN3aC+9rlGGIIVsXGr8=; b=o0bI10gnOSxmhtNLLHF6MMIWZU3ZxFRfRVUiwVPrAk0QGUQ1vCxxNEwVoS/JfvQmZH 991wJQcWlveskuT34utdtIXhYF1TBvJSqpOrJRjdibhl1GsFwsUzOVouAZFjcKULGxpZ IEa58dHBY08lYbMsPqyCZtukYl/Woeh+k/OgvEVvyXrxwBVj/OK/vObP6eoB7rg1y69a i+dv17orG6hncdpJs8TX8vBz3ocCo7pzdDsMfiTuA99LHW8DKAr6+dwP2B3AC3jPVfXT /RD26V0cfjwxAP4F4eM92iAtXeDA8o/ySEqNw8damlG9KpTNbKQYieQxKwve//SRlYI+ 3oyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=k1b6+140; spf=pass (google.com: domain of linux-kernel+bounces-8389-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8389-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i12-20020a636d0c000000b005c6183ccab1si1574231pgc.529.2023.12.21.04.56.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 04:56:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8389-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=k1b6+140; spf=pass (google.com: domain of linux-kernel+bounces-8389-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8389-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 9D4A7B218C4 for ; Thu, 21 Dec 2023 12:53:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 66EE07B3BF; Thu, 21 Dec 2023 12:48:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="k1b6+140" 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 543937A21E; Thu, 21 Dec 2023 12:48:48 +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=1703162927; bh=yEz5ZSUTt9k77CyhKIIQY02ps3ES7aiNgr3GDZOP2uI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k1b6+140QQcj6UqlnfmAOTCoRj/GwOZfrBGDSeAgaCLa1n7BL4CNeAJKJDJxT7S3S gKlKax+3MdDOtBqepo3nOZnso66aLDsC/Tlx94B/I1O+XnVus+09x6HmPjoTNrIwbl 80n19xvgUibKxikr+XVOMT4SjiSjExroqLUVvVtXveuXwHD0FdKSqpJx5hmJQOateG ckYjE6SmjWtE4pO9xovWzEp5F2ZC5b+YmSORLoIHIl/KWlCDwPC6Z9sUocEToNmvq5 cAY2B5hCfk+CI7Lnouu1W0V6Pu2FE/PIRz7qFc8pvTs+Gak1NjDXETopvbf5s4qHDf s6uK2eYy69wag== 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 6BCC63782009; Thu, 21 Dec 2023 12:48:46 +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 19/26] thermal/drivers/spear: Migrate to thermal_zone_device_register() Date: Thu, 21 Dec 2023 13:48:18 +0100 Message-ID: <20231221124825.149141-20-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/spear_thermal.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/thermal/spear_thermal.c b/drivers/thermal/spear_thermal.c index 60a871998b07..07006957acd5 100644 --- a/drivers/thermal/spear_thermal.c +++ b/drivers/thermal/spear_thermal.c @@ -88,6 +88,10 @@ static SIMPLE_DEV_PM_OPS(spear_thermal_pm_ops, spear_thermal_suspend, static int spear_thermal_probe(struct platform_device *pdev) { + struct thermal_zone_device_params tzdp = { + .type = "spear_thermal", + .ops = &ops + }; struct thermal_zone_device *spear_thermal = NULL; struct spear_thermal_dev *stdev; struct device_node *np = pdev->dev.of_node; @@ -122,8 +126,8 @@ static int spear_thermal_probe(struct platform_device *pdev) stdev->flags = val; writel_relaxed(stdev->flags, stdev->thermal_base); - spear_thermal = thermal_tripless_zone_device_register("spear_thermal", - stdev, &ops, NULL); + tzdp.devdata = stdev; + spear_thermal = thermal_zone_device_register(&tzdp); if (IS_ERR(spear_thermal)) { dev_err(&pdev->dev, "thermal zone device is NULL\n"); ret = PTR_ERR(spear_thermal); -- 2.43.0