Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1480391ybz; Wed, 29 Apr 2020 23:32:43 -0700 (PDT) X-Google-Smtp-Source: APiQypLieBzhGAwR7AaU+zCm+4TeGIWwtVzqpwcQRbsSHOXkLH0coOQGPL3EIrdXErEWlU8+S8nh X-Received: by 2002:a17:906:374b:: with SMTP id e11mr1316633ejc.283.1588228363200; Wed, 29 Apr 2020 23:32:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588228363; cv=none; d=google.com; s=arc-20160816; b=MKNzKqM+v8Qag8gpGI9FhH+Lw1F8wCbEt1fQKb7PTyjZt92q2ULIJsTy6nHja6bm11 VTjxYgnPCNaLBotPXta5C2lorDCWysIGsviK+cK/P4MvCTmFmW3TncjCtXZ8QXEPno6N M9FEBpjr7ndL5P8wRSqudDdKOTL91PozsWnidFhHceSw1NSm1t9u0Ma0kqKYqk+dXCrL kCMsQXoIjSrfGxWUhEt8RdIDQAnbPcB88RWIqO4JnYZxKHwoeZo6WPWUlqHT1q31YvbX FncFLiufOJkN44GB2cWuO0rk+i882bgJoUXTRFdU4Ya6YcXzWAPexbDDR8EmczqsxRoB q5oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:ironport-sdr:ironport-sdr; bh=Mi4340bszsyA+8OqtssjXKzHSNpiXvdwdYWbulHxZqo=; b=RAlkjsPJoSN7p0RahDaCIEG3kgujpAqdF7CYBsaly+tqz41encz+SN1JnEeGcRbckx ixEnovy6qoqYHDOdIBDW2MTDN0w56Q0x1VoArpr9U0hg03E5SzjC2GSLichyLtAW2G7n H/e0oY9P6DgVK8tNd+zcNePJQclM5ddMSOsi+oEh4FsBGB/5n0LIpAqbr2t186CxGarB cYz1lss+I1yA1L7gfJnax23/pJsNF5JCTUwbZTlhpwlTDMIHy1vQJjpmh2fRuKCo8BiA 3L3rXKcq0+zk2dBitjYv+Io38Mm6TqG55/h6FHzNvEnJUFHm6/kV6vaAiCw7WWZ52PXv z5EQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do16si5943028ejc.265.2020.04.29.23.32.19; Wed, 29 Apr 2020 23:32:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726573AbgD3G3K (ORCPT + 99 others); Thu, 30 Apr 2020 02:29:10 -0400 Received: from mga11.intel.com ([192.55.52.93]:25173 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726396AbgD3G3K (ORCPT ); Thu, 30 Apr 2020 02:29:10 -0400 IronPort-SDR: B2gc6N67tj/5Ur54FfietNw2Jy3C0b3oJjQ1qtVGzmatVybx77LMl/givGS8T3ATwEAZWM07Tc 2p2JDX9wC5+Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2020 23:29:09 -0700 IronPort-SDR: yRht2i5q3LHB7zEda3YGrnPrMdcEI1pIxnCASg5/7zOOewg2RwrLpiyEf42qgIgyzs3zmQWQUC 2pVAy3jw/8IQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,334,1583222400"; d="scan'208";a="282751632" Received: from power-sh.sh.intel.com ([10.239.48.5]) by fmsmga004.fm.intel.com with ESMTP; 29 Apr 2020 23:29:08 -0700 From: Zhang Rui To: linux-pm@vger.kernel.org Cc: linux-wireless@vger.kernel.org, daniel.lezcano@linaro.org, andrzej.p@collabora.com, b.zolnierkie@samsung.com, luca@coelho.fi, rui.zhang@intel.com Subject: [PATCH 2/6] thermal: core: delete thermal_notify_framework() Date: Thu, 30 Apr 2020 14:32:25 +0800 Message-Id: <20200430063229.6182-3-rui.zhang@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200430063229.6182-1-rui.zhang@intel.com> References: <20200430063229.6182-1-rui.zhang@intel.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Delete thermal_notify_framework() as there is no user of it. Signed-off-by: Zhang Rui --- drivers/thermal/thermal_core.c | 18 ------------------ include/linux/thermal.h | 4 ---- 2 files changed, 22 deletions(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index 03c4d8d..ac70545 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -532,24 +532,6 @@ void thermal_zone_device_update(struct thermal_zone_device *tz, } EXPORT_SYMBOL_GPL(thermal_zone_device_update); -/** - * thermal_notify_framework - Sensor drivers use this API to notify framework - * @tz: thermal zone device - * @trip: indicates which trip point has been crossed - * - * This function handles the trip events from sensor drivers. It starts - * throttling the cooling devices according to the policy configured. - * For CRITICAL and HOT trip points, this notifies the respective drivers, - * and does actual throttling for other trip points i.e ACTIVE and PASSIVE. - * The throttling policy is based on the configured platform data; if no - * platform data is provided, this uses the step_wise throttling policy. - */ -void thermal_notify_framework(struct thermal_zone_device *tz, int trip) -{ - handle_thermal_trip(tz, trip); -} -EXPORT_SYMBOL_GPL(thermal_notify_framework); - static void thermal_zone_device_check(struct work_struct *work) { struct thermal_zone_device *tz = container_of(work, struct diff --git a/include/linux/thermal.h b/include/linux/thermal.h index c789d4f..a87fbaf 100644 --- a/include/linux/thermal.h +++ b/include/linux/thermal.h @@ -420,7 +420,6 @@ int thermal_zone_get_slope(struct thermal_zone_device *tz); int thermal_zone_get_offset(struct thermal_zone_device *tz); void thermal_cdev_update(struct thermal_cooling_device *); -void thermal_notify_framework(struct thermal_zone_device *, int); #else static inline struct thermal_zone_device *thermal_zone_device_register( const char *type, int trips, int mask, void *devdata, @@ -468,9 +467,6 @@ static inline int thermal_zone_get_offset( static inline void thermal_cdev_update(struct thermal_cooling_device *cdev) { } -static inline void thermal_notify_framework(struct thermal_zone_device *tz, - int trip) -{ } #endif /* CONFIG_THERMAL */ static inline int thermal_zone_device_enable(struct thermal_zone_device *tz) -- 2.7.4