Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp3462867ybz; Mon, 4 May 2020 03:32:41 -0700 (PDT) X-Google-Smtp-Source: APiQypLkz6caF2oCWF3QWflJ6MNrmp19mmJ6OJcVa1FpRyM/j0z0vGjhkJqb8Dkpm01ldc6dlYZM X-Received: by 2002:a17:906:454a:: with SMTP id s10mr4649979ejq.141.1588588361776; Mon, 04 May 2020 03:32:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588588361; cv=none; d=google.com; s=arc-20160816; b=elDA/mhAEdzfJaVHtISokiGDHXrEaCxaAMVweJmgPlFwX8jOXiSYSkXqw4YjPTJ+rf xhDlSb1v0wbzK5+3MwPeOckO23o93MNpWM17EZpUxskALCZPbGkD63x2UpL9hq+NR+Gb 2BosFesrNj6SCoeeQ8PuKM4Mr9/ElmWtvLU4EJgSxB/giaLPD1AGKokAqHV1168jE4Gu ZrbB+OJaLLoHeA0QDUmlWU76Ib0HuBVUsLwSzwRxuHlw4jTxDLmyCMuE3i0Y9ykpjsvm sF9Q+l0uL2vToCX8V7ZIbhf9Ztj8sV1DKMPS08xZtqSNO5BK7cn2w8i7JC9PmaPa9F1h oGvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=isXx3kZPW0KJKjNLYJIz7HGG7LBNhfIDc+cXtXeMXr8=; b=ikHfv3ddN2jwem8SaVTwBekWUQLcy0qJXxzwUhWjOp4XOT52p1oZLbR1g4GdSNu0vN j9w7OncXKBMTkBLC5pvubZAK8IlzZ3KEnzKMqWf+q8WKLA3uCjn/GWqfAeDsgkOmUGc8 7BFgHf4KFhkMnwRFcEbxGaVitMme39iK3i0OEd2Lu9zkgnYxEaCjNWCfUmTb8QPVxeN5 deZTZJVMfbrqtckrMDpmBPwLSPdTgPeLMzrv/07G/94Sgf+dIrtmV6WgYTAUaRXnUnJv JOt3kHe78sd5GXPxBP0UBE1pDlG450/+eQ3h5DdnklVcwu556M+MqYSlhalOAKkKLBJs qN+A== 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=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n24si6877599ejg.142.2020.05.04.03.32.11; Mon, 04 May 2020 03:32:41 -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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727819AbgEDKSX (ORCPT + 99 others); Mon, 4 May 2020 06:18:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726531AbgEDKSW (ORCPT ); Mon, 4 May 2020 06:18:22 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F423BC061A0E; Mon, 4 May 2020 03:18:21 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: andrzej.p) with ESMTPSA id 77A722A0E4B Subject: Re: [PATCH 2/6] thermal: core: delete thermal_notify_framework() To: Zhang Rui , linux-pm@vger.kernel.org Cc: linux-wireless@vger.kernel.org, daniel.lezcano@linaro.org, b.zolnierkie@samsung.com, luca@coelho.fi References: <20200430063229.6182-1-rui.zhang@intel.com> <20200430063229.6182-3-rui.zhang@intel.com> From: Andrzej Pietrasiewicz Message-ID: <3553b981-3aa7-b45b-85f8-21bc97f14026@collabora.com> Date: Mon, 4 May 2020 12:18:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <20200430063229.6182-3-rui.zhang@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Hi Rui, W dniu 30.04.2020 o 08:32, Zhang Rui pisze: > Delete thermal_notify_framework() as there is no user of it. > > Signed-off-by: Zhang Rui Provided that PATCH 1/6 is applied: Reviewed-by: Andrzej Pietrasiewicz > --- > 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) >