From patchwork Thu Dec 10 12:15:14 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 341028 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp5578253ejs; Thu, 10 Dec 2020 04:16:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJx+IVJpXeeSzG9DNS2puafCxeJqH1OstoPR+EG2TrMuqRdmYMgymtushmpks720yMIg9PYf X-Received: by 2002:a50:b264:: with SMTP id o91mr6466226edd.7.1607602613910; Thu, 10 Dec 2020 04:16:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607602613; cv=none; d=google.com; s=arc-20160816; b=gpUEzpYCpINGsc9jrLHUyCTuEUNODno68b0wZWJpMgWKzQgU3OVsj4DGlQBv6H31ej GhUJSVhyzLlhRou60oMfWEjVvbfcpISnaSU2foR4ftciFpD/g0n+jC/iN1PV7y7UWODB 2Co2NJ44vBUhPTiuiXDYzNHa83p2TP5XSbSZKBeJVhyMJaVovKa2rLRbzWzvL46xy+Hy G0yTSIT9OpWqxb5ilBr4W7wvXJE2CfzKzLq7k/gzouzmprdWFaKednLwoteMbN+3f6Zg PEg+v+S3l23BDRIsVE8vh1xS/0nXfEXW9WWseXpo+Z5Rvt3T7uDfN6Z7dEKpoOVQSXX/ QSyw== 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=SL5r1XlZ94aUm2Qc3ziNrEN/y8mm4mqU/uGHBbVacJ4=; b=iTIRV5Pm3UHkxmWsZKWwUxUTreX2+pjhA4eO43lz5IkA8xwe3geQJe/zEb1VOQTqL5 QVbe0ipaHY4NTAuPadjmDDdCD9IJqq3YnzSw2UdB+heaoGO3chQIuYrl81foR0aAUCHe rZgyLMH3BVfG44e7IJeeKVHJWELma8kNAsOTUlVyRAaXR9y0aL9OsNOnOyJE29T+JkZR jzYNjgUu7JlsBa1f02c5K0Xdm8xIsqXZ8ZpRvR/b9uJQy8oIGL3o7dvzenZZ+L9PjnZx 79NwL+J2lEHAy0I0pBNhxD0xhMmibh9daDNtLNdgFKiO1WBwDHo3B8yiGTu3gh4GwomC U5aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="i4zw3sa/"; 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 m26si2402535ejc.513.2020.12.10.04.16.53; Thu, 10 Dec 2020 04:16:53 -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="i4zw3sa/"; 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 S2388019AbgLJMQa (ORCPT + 8 others); Thu, 10 Dec 2020 07:16:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733239AbgLJMQ2 (ORCPT ); Thu, 10 Dec 2020 07:16:28 -0500 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D69DBC0611CC for ; Thu, 10 Dec 2020 04:15:30 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id y23so5092199wmi.1 for ; Thu, 10 Dec 2020 04:15:30 -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=SL5r1XlZ94aUm2Qc3ziNrEN/y8mm4mqU/uGHBbVacJ4=; b=i4zw3sa/dq3c28aSZyi5OnHK34vamDUVVSCV6CY8XxrU+XUdO3RT+mpYnXsaXu1bu5 a80zutXQ/Y1muZPG7gR1tk++vAo0E3WV8tQQXbMm4hpm67i1/kh/K/zmwc16nm9/ipk8 gce7ve5V0smygbfR6piPk7qGAacAABdma9Qu0h08wWhkj20YJSAIOl4LZBRt9cYk6up+ nmgZF+QSi6vTUZ/qmk8Iv4vgv4MYLUi0x4JJrIA4fTMRZXGa2pkdRJhZ04JT+sZoisl/ HlSACKXv0O5oDId7y0iXEPegmqvJXiRDCkZV2DbFgYUweySQyyTJ9OBaAblj7LNyxDuk LEYA== 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=SL5r1XlZ94aUm2Qc3ziNrEN/y8mm4mqU/uGHBbVacJ4=; b=dBfU6l2CkzFCR3ECb99l+tuM5EnG3hm6lgAwK756VaRHjRsERpxmBjIm8ZQ/trZgbC DTLnWDAI05TaekTTEIcnOwyhzkslZJI25nBCUsn82VxqbLTkfBt1LcPyDfNmGCMYSPCs Fv2I7EiZk6TOx4FoUCqNqlNlgYf2jvmp3/izs3Q7KgKHUA3iqM/hF/fkPmvJ8WxpanQc vCZoKGBuAYuAy8Rt23IYTvqygRB38zi/orlV9O9On6nMZOl2M0mPjebXE5u5/ROjuksW vMMfkThrWbTCG9qFDy2tqXxoN/xetJfHXtsJ+bBDDT6U8Jf5mYb68+l0h0dcxp/CQlTW 3GLQ== X-Gm-Message-State: AOAM530UMSlz7dZE4c8DGF7r16NW1BUCIYZMQtJ0c9K85B4a5m6B4A6U 5DtZV6GvkEFYLhKl8TFHqbzb7Rrujs3W2Q== X-Received: by 2002:a1c:a583:: with SMTP id o125mr7787239wme.91.1607602529494; Thu, 10 Dec 2020 04:15:29 -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 k6sm8412863wmf.25.2020.12.10.04.15.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Dec 2020 04:15:28 -0800 (PST) From: Daniel Lezcano To: daniel.lezcano@linaro.org, rui.zhang@intel.com Cc: kai.heng.feng@canonical.com, lukasz.luba@arm.com, srinivas.pandruvada@linux.intel.com, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Amit Kucheria Subject: [PATCH 5/5] thermal/core: Remove notify ops Date: Thu, 10 Dec 2020 13:15:14 +0100 Message-Id: <20201210121514.25760-5-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201210121514.25760-1-daniel.lezcano@linaro.org> References: <20201210121514.25760-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 Reviewed-by: Lukasz Luba diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index cee0b31b5cd7..d7481fdf4e4c 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -407,9 +407,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 *); };