Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2973859pxu; Mon, 14 Dec 2020 16:33:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJyNllo1pkZPHFTI8mCvVWk5CA4hHpeKE4ZT2K8SLKicgRkDlfTTvaMZfOmjk2y4UGQ2M5Ll X-Received: by 2002:a17:906:27d1:: with SMTP id k17mr25531451ejc.325.1607992409110; Mon, 14 Dec 2020 16:33:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607992409; cv=none; d=google.com; s=arc-20160816; b=xKC8bDpy+F4yg6rky5Tids6XNaPRktJKxi13bOcW/2JEHdl7OpoPyPtl4ww1dLXctq Vr8IEpDcuYBfCcaD00oeMG7IpMS63HDt1r8U5a/M5Z0hLfJHSju8kr59s1s4i04mYcUw vwcEFbBsKJJyjPzVQlPl+TC0dQ86c0+VvEd1F57aCeRw9SeOx0KbbysDd/eyU+iQ4M4l UQWwmXF/fZGWxgeQ8yrWMNZvM9UsnGS0xmpfCEFmUC/c8tck8YiRdzkbxwWO/d/0BuIK 6tKgsuUcqSDohQUX7grvzxSaNp2f++8+69dDDzFxVFguKIoxd18Sar6JFSNFA2QxVnxN 7Gmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=HR6fxnctcFG0S2fOhN1StND9v+I0KlYE3gnQEW5jseo=; b=IU5jsiNqV8sDJVX8fCcwHayN+B038XCSUxwCRI2WWTkN630FAmGMc8OaniKgD1yRD4 ltyZRoyvtCgYAlEoxikgBkELR9qrXnO+Qn8dav8mC4m02c8E1uwuJxZiXgCHOhq5fkpW efAOCRWgwrugP6cwUjJ19PfxUKkhURsPBzZKmt9k5hKRGp5Tgi7dF14oiXFZlCFpgoYi ocBBhKERUWYBNFclbAQ5WnwtQCB8xm8pL+nTQ6JppOVRhB9yDRrw88wWqkg/SZAEMvLt 0G8DRosspjnV+yiyCu+1nig/mZz1V1leh1Vl9OTMvN8+E7j0mOleJ0nPoHPHpLXXFadd YjYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="I4+ur7/J"; 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 v8si61559ejj.305.2020.12.14.16.33.06; Mon, 14 Dec 2020 16:33:29 -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="I4+ur7/J"; 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 S1727297AbgLNXll (ORCPT + 99 others); Mon, 14 Dec 2020 18:41:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46716 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727093AbgLNXlJ (ORCPT ); Mon, 14 Dec 2020 18:41:09 -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 9841AC0611CA for ; Mon, 14 Dec 2020 15:40:03 -0800 (PST) Received: by mail-wm1-x342.google.com with SMTP id 190so5044284wmz.0 for ; Mon, 14 Dec 2020 15:40:03 -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 :mime-version:content-transfer-encoding; bh=HR6fxnctcFG0S2fOhN1StND9v+I0KlYE3gnQEW5jseo=; b=I4+ur7/JqkDvRM9rhYAD8XbIRYlOOoS5VmC+0o3cupQmlhxvVdRe5zc1ugCTN2c50N rUCImwC/t6kBthv1M2bwbWgHCayE1VisBLU4Etxmli/UZw03f3d976Ws99Ep9PcZoQDN MEXTGyToiCQh1Y6IhO6g6Y4yY7GOQveUouYtNOk1UMvM0XGxJkxPRvsqmo4UdosctfW8 pMTaP7uJMLDlFOhOd656vO7TunBRhFr32P3JgME36WPwQSkCrSJE4ldXKhOk1elfhuzc 4Ozvb0ZZLcQBBvaAv24A8g9JNIOfBNGMc+mpd1WCCDQ1ZZx8aR8mya6qP0gdMWp1jCxs EI2g== 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:mime-version:content-transfer-encoding; bh=HR6fxnctcFG0S2fOhN1StND9v+I0KlYE3gnQEW5jseo=; b=Sln7Ww93CNq9vrqHX/AnR9oeFXXhMxVm9ePAQM3ddAqfOW2cdMrgqKx2tWtqbpQ0dk 5YDiGolE13b12rk/618BpRxAr6KPfBrMSPzTwYrSAFCXnaAW16nznW9oLA+t78XouSYc tq1aJ2iQgykiAr0XAgeB+R4A2dn4kYYPkf0VUY1QVNt0tu6z6A632O+UyUJkoEyIoPM7 u1MVnB+PUlxd6j9F9I6NHuorKodbpwLXvoAJICRxMxfIWBKSXCzXf8oiEk2FHM1glxe6 JUhMpeXsa4CsoX9mhnk0FMEbqHOYVXjIZB5wF3xvKB4g3Vi4hWOAaUk+68C8pxMl3rO8 lHhg== X-Gm-Message-State: AOAM533kUABEuMUz/UDYwVJ0yIgSPoBoHAd1GWvV/zBeSYP2Cjurura4 MA0D5R1VQZxJao3zLtDCDjNRkQ== X-Received: by 2002:a1c:81d5:: with SMTP id c204mr29695087wmd.156.1607989202159; Mon, 14 Dec 2020 15:40:02 -0800 (PST) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:e842:4086:6f24:55a6]) by smtp.gmail.com with ESMTPSA id h3sm34145075wmm.4.2020.12.14.15.40.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Dec 2020 15:40:01 -0800 (PST) From: Daniel Lezcano To: daniel.lezcano@linaro.org, rui.zhang@intel.com Cc: mjg59@codon.org.uk, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, amitk@kernel.org, thara.gopinath@linaro.org, "Rafael J. Wysocki" , Len Brown , linux-acpi@vger.kernel.org (open list:ACPI THERMAL DRIVER) Subject: [PATCH 4/6] acpi/drivers/thermal: Remove TRIPS_NONE cooling device binding Date: Tue, 15 Dec 2020 00:38:07 +0100 Message-Id: <20201214233811.485669-4-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201214233811.485669-1-daniel.lezcano@linaro.org> References: <20201214233811.485669-1-daniel.lezcano@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The loop is here to create default cooling device binding on the THERMAL_TRIPS_NONE number which is used to be the 'forced_passive' feature. However, we removed all code dealing with that in the thermal core, thus this binding does no longer make sense. Remove it. Signed-off-by: Daniel Lezcano --- drivers/acpi/thermal.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/drivers/acpi/thermal.c b/drivers/acpi/thermal.c index b5e4bc9e3282..26a89ff80a0e 100644 --- a/drivers/acpi/thermal.c +++ b/drivers/acpi/thermal.c @@ -764,25 +764,6 @@ static int acpi_thermal_cooling_device_cb(struct thermal_zone_device *thermal, } } - for (i = 0; i < tz->devices.count; i++) { - handle = tz->devices.handles[i]; - status = acpi_bus_get_device(handle, &dev); - if (ACPI_SUCCESS(status) && (dev == device)) { - if (bind) - result = thermal_zone_bind_cooling_device - (thermal, THERMAL_TRIPS_NONE, - cdev, THERMAL_NO_LIMIT, - THERMAL_NO_LIMIT, - THERMAL_WEIGHT_DEFAULT); - else - result = thermal_zone_unbind_cooling_device - (thermal, THERMAL_TRIPS_NONE, - cdev); - if (result) - goto failed; - } - } - failed: return result; } -- 2.25.1