Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp122085rdb; Thu, 21 Dec 2023 04:50:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IEg/cq8fwqlJ6u+ENOnApVyqFSgTgf3Ee4O2iC4q3LGwdPrjpk8B5Zi/hGxWZVY1lNP1EyU X-Received: by 2002:a05:6214:20ad:b0:67f:808f:d30e with SMTP id 13-20020a05621420ad00b0067f808fd30emr1498271qvd.32.1703163013164; Thu, 21 Dec 2023 04:50:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703163013; cv=none; d=google.com; s=arc-20160816; b=V4W26kJ/DZhleUBqat5L9IJGDOrnXQv/SE2DhngLjnnbb/OfwB087uaAH0U9QUUEpc XNBbdcK+8/iZ1fXbRDaZjpOeCWjFZVIPMucH4oG8peMdVfVjr3QV2tjofMoIS2DOZ9QQ 7Q46QEvBzziDrY3EZSouh7R1AKBBhaoJbDLxogojXsi4zI39gbz4ukGuHKNXhFUueQ0I ipELTexs44wPM09yfgQokG5DZt9qq6OrzHJ0JNXWRJThDmIUbNtPFLcYo5WOigvtDzB2 ZUxIMQOOm2ylM/5anB7bGMmOZOuArx7TQICWCJKQ3mg26W1qP8q5oFt41HrppaNIcOf6 oCqQ== 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=tNkRtNXAXZ0Hd/Kj4S55A6Jw2UJxL6Xqa3B4UhhUl8o=; fh=tj3vwvS1joPqVAqhm025RI9FzN3aC+9rlGGIIVsXGr8=; b=uD9hhoRrE3O9PtsIGZOwV0ZkMWUyQjwhYt0hypfgJc8bG0w/HxH/y/Qi/K6Cp3KI97 PMcyWv4rTdlHPAS6lCC46NTbbNxUARrS/JxFgnSxRDyKapc6g9XxR01abHbPD/7BLieN 5x0HbICua45tm1X87SZsUrKxAnn6XCkpzjKXvAK8y5G/tEQ6eKDlI7Xp7JMPB/yF+ccQ 0fNtbVFk52GBUs35vKLEEcqDYfgdjcH4IE46A0rzsBrTWqL7eYSk8yhkavnQE4hkhQZj OQ+ieOVZ9II+kQkCxe+gXsO4DFXiiHul8s1YiC7xQd/ZRR1Jrx2aMOgR46zjTXt1qWWK pPuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=X0kpciBk; spf=pass (google.com: domain of linux-kernel+bounces-8374-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8374-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id w7-20020a0cdf87000000b0067f3f1efa29si1988023qvl.53.2023.12.21.04.50.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Dec 2023 04:50:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-8374-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=X0kpciBk; spf=pass (google.com: domain of linux-kernel+bounces-8374-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-8374-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id E51F01C23FD9 for ; Thu, 21 Dec 2023 12:50:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6D5B076DC4; Thu, 21 Dec 2023 12:48:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="X0kpciBk" 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 5BFEF760B4; Thu, 21 Dec 2023 12:48:39 +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=1703162917; bh=lN2kEBY91fJMh8nUO8EEJ+b8UdVj8nBk40WMG7UhE1I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=X0kpciBkLzwodvPTU/VviekD45Ye51zgVzk4Wh8IaaFSJrjmLzD0A0Yqa9yzgh/hg YgmgDct4djWi3LV1rWVAiwUyo6zoblAKu8v95CacQYYN2dXE0LMtXLbsv9AOhFC+uo 00dn4kDKIODoEYrKSpMDz1NKJ+SGvDgFdIwwYj/vAPM7fOrpEt1UC2undAnn5zmt6r qK4/ArbXmGJqVPgvLUOnk7LiBzZqJ5SgyB1jwcpFd65BQh+3c/Fw7ax/2bfdlafTzh AiDrL1UFLgt/ZrxqR1kWe6Aev7PK1BHumN9xUD0vopvDhGmbMx9qQcYUn0OxkXSvyl 2RcD5mfsqSCoQ== 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 3571F378200A; Thu, 21 Dec 2023 12:48:37 +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 07/26] thermal/drivers/rcar: Migrate to thermal_zone_device_register() Date: Thu, 21 Dec 2023 13:48:06 +0100 Message-ID: <20231221124825.149141-8-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/rcar_thermal.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c index feb848d595fa..71bc7353285d 100644 --- a/drivers/thermal/rcar_thermal.c +++ b/drivers/thermal/rcar_thermal.c @@ -488,10 +488,15 @@ static int rcar_thermal_probe(struct platform_device *pdev) dev, i, priv, &rcar_thermal_zone_ops); } else { - priv->zone = thermal_zone_device_register_with_trips( - "rcar_thermal", trips, ARRAY_SIZE(trips), 0, priv, - &rcar_thermal_zone_ops, NULL, 0, - idle); + struct thermal_zone_device_params tzdp = { + .type = "rcar_thermal", + .ops = &rcar_thermal_zone_ops, + .devdata = priv, + .trips = trips, + .num_trips = ARRAY_SIZE(trips), + .polling_delay = idle, + }; + priv->zone = thermal_zone_device_register(&tzdp); ret = thermal_zone_device_enable(priv->zone); if (ret) { -- 2.43.0