From patchwork Wed Dec 9 15:34:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 340363 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp4701623jai; Wed, 9 Dec 2020 07:37:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJxTBAUqCbRm/lMYzM7Hy13brvkQFutfkuA6PHV65lABXKqX4ZjsMvI+7GmdB/3Sl7zfr+gR X-Received: by 2002:aa7:c4c2:: with SMTP id p2mr2555456edr.63.1607528233691; Wed, 09 Dec 2020 07:37:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607528233; cv=none; d=google.com; s=arc-20160816; b=e+xVgU7hAJrZW9Zy1FtBiv8HbspJ2GEk2C0m38qwhbek5OiKdAP2d/oc8O7/nk3mnE kzdl/1Pj5br7x9vSITfeqTU+RZ4uWp3hqZ0V4U7VjaAawFGKWcVMfhanphf2POCwYVzb 2DQPQm4yGPe7Zc7oaqM4FcFnV1DoQjO1vaXO+BB7E4D1Qyp2IV6nZCG0ub0+4xXOJT4G WrwdHRBi8XDtdIFge938aEc/ouxnYtRm62Pob4BoeNO65/0F3ndMH7ovM/PnDyqbUrf1 vjE5WdQuv8mE2utdIs14SFNSPVQxggHyMIxUqwWJHRpK10Kozy9GrRHYxRd7Nc1Oh791 nzqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=NyznDPS+potp54SZ8vXhKxNkqaQy2TwObORIS4uz01k=; b=MFHpw9u3B96IZYPLvAxwsqEBe5N0z7+VAG++01YvKn91Ru1rv6tbxlag+BdrjHm/eB InH3w1vzsKrXdpLZ8EoHo7lGRItb2cxmfRBwRO/TLhCNbgPHc/7SZklzIlceLm6ol5l4 lsgmW4fDnuz7CyIFoPWnQK0hBhVx7UdEyL7sDyMGJOU50Esa6VOg7nefhBIUXdFl+CLg GejN8pCTaGICknCztMShBKSMEbeWgOqscJ7c+CxCx8mYTDfQ9gUD8rQIZaTfmIMqVfwY eN1Q23t9rUnUXJIXOlAo4+D8k8J4LFZ2rh/uQf+jd5B+6sluoNe7wRQ9ZNEV5f0CPgxO XQcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Kf+OH8cE; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 q26si966683eju.216.2020.12.09.07.37.13; Wed, 09 Dec 2020 07:37:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-pm-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=Kf+OH8cE; spf=pass (google.com: domain of linux-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 S1729377AbgLIPgW (ORCPT + 8 others); Wed, 9 Dec 2020 10:36:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726526AbgLIPgS (ORCPT ); Wed, 9 Dec 2020 10:36:18 -0500 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 266DEC0617B0 for ; Wed, 9 Dec 2020 07:35:02 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id k14so2228717wrn.1 for ; Wed, 09 Dec 2020 07:35:02 -0800 (PST) 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; bh=NyznDPS+potp54SZ8vXhKxNkqaQy2TwObORIS4uz01k=; b=Kf+OH8cEA1M0oMUKxOimRjomrUM1OT3bBuEgBhvosuc/kv6TiUjOoaZOr0Gd+uWX8h YkpSaxUv8tKgAM/4YZy52+gv6PgiEroIFcWq/gvVIW8ogML7LEDM4nEkYlah33VEVNpZ 4jnhvrfzxl9gG0cy4uy4mb1rMEIeNhRMaJ5uxbktDyUfDlWdh0dboCGHdf7RdNPL8dpG 3Tm1fSlZJ2se6iyovuQDgLXqJKAmV7A3lhrVeokhA+bK6BP4yc1XboHAYwchOpzBcx3D oscTKaAKObz86YxBe6NFsNY6UgN2KcUUwFffQorz+EKHPqIJ0f2aif0wfTgm0ONaWZ1a MEbg== 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; bh=NyznDPS+potp54SZ8vXhKxNkqaQy2TwObORIS4uz01k=; b=Tp/rOA95+wMCp509iC8QsAs0Y1DCplgx80DuuKRBbWIac0OoEP7v0aruqQGdzSg9qz Yw7ukdvbj640D1hFCo5sPS7cdslpemrnRi9x/gRP1pl9LnGo6qP6CIx3hJ+YubHXVVLq CD//mPCRmZuXHwgHSIj/vBFa3xU6ZvXW8t69/gr5exPrFlCrfNax9+Ep1YvnLDUu/iu7 Up54rqNruDp3420uDNrAscosP5wA6xamFTsGaD/k/RkLgnma1gAUwryVye1uCg5jTm/X zcjqysoHtjq2kabhi0b/pEVOqK+0SZJ3Z0EZ/chn1e1SC+J2zlYyAVbq1pJ8JQGDzl8j uetg== X-Gm-Message-State: AOAM530VLg8K4IWFkwbPRrn64xlIsCnL2m9Qpu3fwVk+e6FZnZ6OivEN xgj05nauXKtRiIs3Zi3iYZ3MVq0VyzwY3A== X-Received: by 2002:adf:a4cc:: with SMTP id h12mr1039614wrb.391.1607528100738; Wed, 09 Dec 2020 07:35:00 -0800 (PST) Received: from localhost.localdomain (lns-bzn-59-82-252-158-132.adsl.proxad.net. [82.252.158.132]) by smtp.gmail.com with ESMTPSA id l8sm4208382wmf.35.2020.12.09.07.34.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Dec 2020 07:34:59 -0800 (PST) From: Daniel Lezcano To: daniel.lezcano@linaro.org, rui.zhang@intel.com Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, lukasz.luba@arm.com, srinivas.pandruvada@linux.intel.com, kai.heng.feng@canonical.com Subject: [PATCH RFC 4/4] thermal/core: Remove notify ops Date: Wed, 9 Dec 2020 16:34:40 +0100 Message-Id: <20201209153440.27643-4-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201209153440.27643-1-daniel.lezcano@linaro.org> References: <20201209153440.27643-1-daniel.lezcano@linaro.org> Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org With the remove of the notify user in a previous patch, the ops is no longer needed, remove it. Signed-off-by: Daniel Lezcano --- drivers/thermal/thermal_core.c | 3 --- include/linux/thermal.h | 2 -- 2 files changed, 5 deletions(-) -- 2.17.1 diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index 0366f3f076cc..8a47369f0432 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -406,9 +406,6 @@ static void handle_critical_trips(struct thermal_zone_device *tz, trace_thermal_zone_trip(tz, trip, trip_type); - if (tz->ops->notify) - tz->ops->notify(tz, trip, trip_type); - if (trip_type == THERMAL_TRIP_HOT && tz->ops->hot) tz->ops->hot(tz); else if (trip_type == THERMAL_TRIP_CRITICAL) diff --git a/include/linux/thermal.h b/include/linux/thermal.h index 125c8a4d52e6..7e051b4cf715 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -77,8 +77,6 @@ struct thermal_zone_device_ops { int (*set_emul_temp) (struct thermal_zone_device *, int); int (*get_trend) (struct thermal_zone_device *, int, enum thermal_trend *); - int (*notify) (struct thermal_zone_device *, int, - enum thermal_trip_type); void (*hot)(struct thermal_zone_device *); void (*critical)(struct thermal_zone_device *); };