Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp2938775pxb; Tue, 12 Jan 2021 02:17:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRBagFkzQvD+Kzv6ocWmVApueSYf4Yia1nv3HozMcdW+V8vPhIfj0E0VzfhIdu3UFa73dx X-Received: by 2002:aa7:c547:: with SMTP id s7mr2748420edr.240.1610446644059; Tue, 12 Jan 2021 02:17:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610446644; cv=none; d=google.com; s=arc-20160816; b=hOGd1a1N4UXaIBL+Y8RJ1vyKm/1NQRNXmi+NFUKKIVqteiitgrvtXKyE8o1YCGHTUn CLIVWtQE72vtl3WWMpg6evuCdcfDQFuCVWcpa9wFhL6/dG8xN9pNwbYBkv6qO4JGXlkB k6CQxHP0NIhNyLVMe5SBxEMQ9tDJ/5a9qdZwQC62RSjSy10ZkfyAO3wgCJrLm7Y3EUAA jxgtKL3r8kBdoJyL9kv1cDfbwIwS2FiV4K+3E2t1+VuzQy1hu7a3FUPx8EzyBKHaGn++ ZPErXPcIZNSv8MorzCFmBbeO2wT8gYqnqdwLmb0Rs0OOVz47R0/6U3TbF8OeJQqgZqv8 lTdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=FwCcHXIwvmfHyHokPaF3+kDwTlr3KIMrsOj6iB1l8/Q=; b=nFaC1QQ4ffxL90ceRM/xexEVV7HmyakPAb0rhSGgtveRMv5x7CtFULH9Aq4cQuJor4 9WTVlbRsor+00mDM/8W/pd0unJ4mkGEElQqRdkdsePeP+6vEPilel57+yOGws1NW+t3r 3Hnl79hyAdmeXwJKoPrHnp9oyOJ/LEBH//FegB8pnDX0n1hpEwuLnHABa/YmoNQ3xOX/ gLDM0P8Q2ow+lqPXudSZGQ+LbF5dBzy60pc4CosN4REe1upHVzvxqiIlFyV3fGSxx8ET U1HuQrx+kdQAjdoxd33j7Y+ygNKDX9GUh6WTyWuO0EBKlw6Bg7WQ+/jooH45msShjKeg KULQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="qL/hoG0x"; 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 s13si894902ejv.28.2021.01.12.02.16.58; Tue, 12 Jan 2021 02:17:24 -0800 (PST) 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="qL/hoG0x"; 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 S2404737AbhALAZA (ORCPT + 99 others); Mon, 11 Jan 2021 19:25:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403948AbhAKXQL (ORCPT ); Mon, 11 Jan 2021 18:16:11 -0500 Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C20CBC061786 for ; Mon, 11 Jan 2021 15:15:30 -0800 (PST) Received: by mail-il1-x129.google.com with SMTP id w17so1014642ilj.8 for ; Mon, 11 Jan 2021 15:15:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=FwCcHXIwvmfHyHokPaF3+kDwTlr3KIMrsOj6iB1l8/Q=; b=qL/hoG0x3VGuUVJz3XLblstAzv7RI+xZIW3smtXYnQRW4+8KdZGgHmfTh688qhpLeg iqg+P6k87I7DbzWA3juYgmQ9CrQLYfEoDydeKLUCRaxv6UX9bw4nzW8jjnEcSD63jde+ kyGB0VQJgBHRWdCjUdFu08B1Sbs6YdmdHfe1/JB3b0H+Qa2xXiQRqZJq/4fuPSKbvO+o iUoQFhMzWrgfYsMJk7LmBGcYJHjr88tPPkAPogG21vpJ9CkTy/S5d3J/NAGfj+VWFm+v ehHacRctZyNAknOwDjjpOv8AbXcHVukwo+JPhEvA1OKyrhbTZ6qdjevI2PQpJQI2nPPZ U3Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=FwCcHXIwvmfHyHokPaF3+kDwTlr3KIMrsOj6iB1l8/Q=; b=qr+ZxamlIxaXDF89K0NqZOp53vIXey4pR+YSm3ooBdQ8LsZBpyjKrdyChiHOESt754 45/8kF6+v5IjldpaIDPaAlKc/JyFBmj2JNTpLM64vxLCTI2AFH/CIsqQCNNYLCOUko2D Sfyoytv3FFrQxHdeYT7dIeuC/A/br6jYT8k4qXrkMUYOxkWgtXUIgdSrzZ21hE48iNkB K/5Z2JJWnAzq+D1RFNRy4dhEIcC8Yw+sCDicMSVjF7f9mH3+fMqf6nxeUQJnbBHd4WBN 8XGQiXLi76ulCddBFuWH8WuS0sIuciDSw2G2j3N0g7+FJ4Vo51ce112WQzRJGN7dzAed oQZw== X-Gm-Message-State: AOAM533r2fugfi13B44zRiG/QWWF8Ko5nfkkKDsS/dq7z4nP6a6bu0vz zAQlktzOkRL/KMR51loqLDTkDw== X-Received: by 2002:a92:bbcb:: with SMTP id x72mr1315983ilk.104.1610406930122; Mon, 11 Jan 2021 15:15:30 -0800 (PST) Received: from [192.168.1.93] (pool-71-163-245-5.washdc.fios.verizon.net. [71.163.245.5]) by smtp.gmail.com with ESMTPSA id y5sm867733ilh.24.2021.01.11.15.15.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Jan 2021 15:15:29 -0800 (PST) Subject: Re: [PATCH 2/6] thermal/core: Remove unused functions rebind/unbind exception To: Daniel Lezcano , rui.zhang@intel.com Cc: mjg59@codon.org.uk, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, amitk@kernel.org References: <20201214233811.485669-1-daniel.lezcano@linaro.org> <20201214233811.485669-2-daniel.lezcano@linaro.org> From: Thara Gopinath Message-ID: <7aa8396e-9dab-09ad-0eb6-86b412fccd02@linaro.org> Date: Mon, 11 Jan 2021 18:15:28 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20201214233811.485669-2-daniel.lezcano@linaro.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/14/20 6:38 PM, Daniel Lezcano wrote: > The functions thermal_zone_device_rebind_exception and > thermal_zone_device_unbind_exception are not used from anywhere. > > Remove that code. > > Signed-off-by: Daniel Lezcano Reviewed-by: Thara Gopinath > --- > drivers/thermal/thermal_core.c | 37 ---------------------------------- > drivers/thermal/thermal_core.h | 4 ---- > 2 files changed, 41 deletions(-) > > diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c > index 567bc6f254c0..a0f0c33c8d9c 100644 > --- a/drivers/thermal/thermal_core.c > +++ b/drivers/thermal/thermal_core.c > @@ -598,26 +598,6 @@ static void thermal_zone_device_check(struct work_struct *work) > thermal_zone_device_update(tz, THERMAL_EVENT_UNSPECIFIED); > } > > -void thermal_zone_device_rebind_exception(struct thermal_zone_device *tz, > - const char *cdev_type, size_t size) > -{ > - struct thermal_cooling_device *cdev = NULL; > - > - mutex_lock(&thermal_list_lock); > - list_for_each_entry(cdev, &thermal_cdev_list, node) { > - /* skip non matching cdevs */ > - if (strncmp(cdev_type, cdev->type, size)) > - continue; > - > - /* re binding the exception matching the type pattern */ > - thermal_zone_bind_cooling_device(tz, THERMAL_TRIPS_NONE, cdev, > - THERMAL_NO_LIMIT, > - THERMAL_NO_LIMIT, > - THERMAL_WEIGHT_DEFAULT); > - } > - mutex_unlock(&thermal_list_lock); > -} > - > int for_each_thermal_governor(int (*cb)(struct thermal_governor *, void *), > void *data) > { > @@ -685,23 +665,6 @@ struct thermal_zone_device *thermal_zone_get_by_id(int id) > return match; > } > > -void thermal_zone_device_unbind_exception(struct thermal_zone_device *tz, > - const char *cdev_type, size_t size) > -{ > - struct thermal_cooling_device *cdev = NULL; > - > - mutex_lock(&thermal_list_lock); > - list_for_each_entry(cdev, &thermal_cdev_list, node) { > - /* skip non matching cdevs */ > - if (strncmp(cdev_type, cdev->type, size)) > - continue; > - /* unbinding the exception matching the type pattern */ > - thermal_zone_unbind_cooling_device(tz, THERMAL_TRIPS_NONE, > - cdev); > - } > - mutex_unlock(&thermal_list_lock); > -} > - > /* > * Device management section: cooling devices, zones devices, and binding > * > diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h > index 8df600fa7b79..e50c6b2909fe 100644 > --- a/drivers/thermal/thermal_core.h > +++ b/drivers/thermal/thermal_core.h > @@ -118,10 +118,6 @@ struct thermal_instance { > > int thermal_register_governor(struct thermal_governor *); > void thermal_unregister_governor(struct thermal_governor *); > -void thermal_zone_device_rebind_exception(struct thermal_zone_device *, > - const char *, size_t); > -void thermal_zone_device_unbind_exception(struct thermal_zone_device *, > - const char *, size_t); > int thermal_zone_device_set_policy(struct thermal_zone_device *, char *); > int thermal_build_list_of_policies(char *buf); > > -- Warm Regards Thara