Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp106548pxk; Wed, 16 Sep 2020 20:31:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwA04WtIZuVp6KacuBY8eRF26fnmjsESmkHEgwWpKNVyXD16q4+TU2QxsH4mweVBotC8QUj X-Received: by 2002:a17:906:368c:: with SMTP id a12mr22346461ejc.423.1600313464704; Wed, 16 Sep 2020 20:31:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600313464; cv=none; d=google.com; s=arc-20160816; b=V7ZYniwy9JBwcLhjTvZEqLDtAZvqRDGAFde3dBXC6SuBL+DNm0qon7XrNdUIvl+/0T f0t4gk5V0xHKNKBpxs3jYp1e+Nv/WqGCgShXo3dzrpytSSdeCwSt9KtZfrSZmQyJc7n6 7XJc1ayeI/x2+IVOXmnCpLkpclu3pX2EmJGsO6Ny8xxyGS2PgZvBVYOz7DBgLuuuwwwE qmLl/AQ5MyRtN8Mv3wgosRiLuoN537RaJbYtn/bhh+v+EBCMwkVejBeU8uuwoEVre8je +VEZlpz5GL0mR6wgPMJlBPAFPBldkEjgt5b18ykFUYw3c2WlQXw5udg2yQ2S/TgLTUD6 aPng== 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=7uYlLNN0UyKBRIab8OLOITLg387YzzBqmIZv+ipj1Bk=; b=V/0FrgchEBoi3t3t9t0i0TkbqiSLh9kyG90rrFgvRyxASBGs/EhuLIxERWPHxUU+W+ BVCuwHuYOHco1bDqV1xa8fJ3w47WbAKt4Lwu8LeKWc+1lVF14Avl32pcgehX/1AZYn4J LKhKYqKi9YR1Zo30atG/DM2hCYbW726t0kHirmQMdwDvvaXm9l3+b0TnmVQjvS7WDVbS t31VAWWW4YTqqcwf0mEnL0P5R7f8AWcKlUOhgzSaYjpJ6i88i0fviEKHyauk01qGJ9/9 nYK3QrSjWXKTjmvK1OZ0+QIG2Jpqy8yU+EtdbBhAXhdGNwmkWstGfzTAdicytwVKKvAK Xg9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WgQWIsUl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z26si12453228ejr.489.2020.09.16.20.30.41; Wed, 16 Sep 2020 20:31:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=WgQWIsUl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726142AbgIQD3S (ORCPT + 99 others); Wed, 16 Sep 2020 23:29:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726149AbgIQD2H (ORCPT ); Wed, 16 Sep 2020 23:28:07 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0609C061A27 for ; Wed, 16 Sep 2020 20:22:35 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id r8so757108qtp.13 for ; Wed, 16 Sep 2020 20:22:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=7uYlLNN0UyKBRIab8OLOITLg387YzzBqmIZv+ipj1Bk=; b=WgQWIsUlbXN3VVXSecXh6NSwzMBUdXegJ1UbE5dZ5hL0zTZqMnJXK3IU1YodWCoeuB Y4OEpjgNajgPg+yhYvIAF872GecFsE1BgxlzwnqnA2jGT679cwonprKHeJe8p+UZy5J4 r72IIPcyanDumuLDsqhSxQlUc1HrTMomgmZd3gWrEDjF51lbPdFbSTdtKnYDJe3bi49z HEdjA9fmvjxIv9m2vCLCmsz7H6ZD+ixW5RTucdXqj8nak9ZZl5Ra/dU9HxJrqjt1fx3v 5Uc6+JFwsR2u575L2MXyGO88rbRgDz78wJEGc2KS0sgSp02IBTsoU+HrrDclIL7UUzD5 yPIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=7uYlLNN0UyKBRIab8OLOITLg387YzzBqmIZv+ipj1Bk=; b=pGW5E4bgiWSYARgIlfZZ6VFUxQE9x72APL/vhzIzCN8/fQz0q03mhSUvqggLap7aST 8TKbgJGAEgV1K0NVNE0aJid5clKniFTl7QLjHeofncwDmo3MvCair/ZSspZxlmn8Wf1L jZC4oezYZGb8wM2DrFmolJb+G1CNbH7R8EBf7ZIyrfRkBQT4Nlb6XTAaTsnz2Q0m7kTD 5KQ2GX8NW6rGIe+uED5s2PdtwfwRJCgA6HdIcAcEco7G+dH+OKGicgS6oPrU5WMT1hqr ZOib0so+/fYvwsBKXmas0PblvxjLfKi80rc1Ti2WJjz43WfqTDeXfF+fwf0BiQ123ZyQ Eshg== X-Gm-Message-State: AOAM532D4VR+4Hx9z3PsIrhsiB8Dte6d3JQRG+l2W0Y+7KQa0cMKQtPJ BteJNQwnHxc6sb+Rnn2p6Z5o2Q== X-Received: by 2002:aed:2b86:: with SMTP id e6mr25582795qtd.86.1600312955087; Wed, 16 Sep 2020 20:22:35 -0700 (PDT) Received: from pop-os.fios-router.home (pool-71-163-245-5.washdc.fios.verizon.net. [71.163.245.5]) by smtp.googlemail.com with ESMTPSA id g45sm21370801qtb.60.2020.09.16.20.22.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2020 20:22:34 -0700 (PDT) From: Thara Gopinath To: rui.zhang@intel.com, daniel.lezcano@linaro.org, robh+dt@kernel.org, agross@kernel.org, bjorn.andersson@linaro.org Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, lukasz.luba@arm.com, amitk@kernel.org Subject: [PATCH RFC 8/8] soc:qcom:qcom_aoss: Change cooling_device_register to warming_device_register Date: Wed, 16 Sep 2020 23:22:26 -0400 Message-Id: <20200917032226.820371-9-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200917032226.820371-1-thara.gopinath@linaro.org> References: <20200917032226.820371-1-thara.gopinath@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Always on subsystem host resources cx and ebi that are used as warming devices. Use the newly introduce _warming_device_register to register these devices with the thermal framework. Signed-off-by: Thara Gopinath --- drivers/soc/qcom/qcom_aoss.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/soc/qcom/qcom_aoss.c b/drivers/soc/qcom/qcom_aoss.c index ed2c687c16b3..4f65c03a5def 100644 --- a/drivers/soc/qcom/qcom_aoss.c +++ b/drivers/soc/qcom/qcom_aoss.c @@ -461,7 +461,7 @@ static int qmp_cooling_device_add(struct qmp *qmp, qmp_cdev->qmp = qmp; qmp_cdev->state = !qmp_cdev_max_state; qmp_cdev->name = cdev_name; - qmp_cdev->cdev = devm_thermal_of_cooling_device_register + qmp_cdev->cdev = devm_thermal_of_warming_device_register (qmp->dev, node, cdev_name, qmp_cdev, &qmp_cooling_device_ops); @@ -501,7 +501,7 @@ static int qmp_cooling_devices_register(struct qmp *qmp) unroll: while (--count >= 0) - thermal_cooling_device_unregister + thermal_warming_device_unregister (qmp->cooling_devs[count].cdev); return ret; @@ -512,7 +512,7 @@ static void qmp_cooling_devices_remove(struct qmp *qmp) int i; for (i = 0; i < QMP_NUM_COOLING_RESOURCES; i++) - thermal_cooling_device_unregister(qmp->cooling_devs[i].cdev); + thermal_warming_device_unregister(qmp->cooling_devs[i].cdev); } static int qmp_probe(struct platform_device *pdev) -- 2.25.1