Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp5109769rwb; Wed, 21 Sep 2022 03:22:18 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7XM3FsXsPRY7R7joeosj4LEaLWSXGHExRT9DsRI4UU4XLu/JkQUG8dA23yS6kKDC0yPhWl X-Received: by 2002:a05:6402:1f15:b0:453:a795:4c60 with SMTP id b21-20020a0564021f1500b00453a7954c60mr17883284edb.75.1663755738057; Wed, 21 Sep 2022 03:22:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663755738; cv=none; d=google.com; s=arc-20160816; b=RJLGnvAsotOH1odoNf7sYwIWOPP0duVXt5nN2qGw1+FpkmWNP6U4llo4gNy56NwMbz AfXWNR82wsgWb4N1E5Rl1aPWYnyXzyttsCHBtzlvujXrpGPvvHvqm7KeyThyhdSb4Jq/ H/bixRNabmz8iTgs9qFFMFThRhyKjxZ8l3Otc3mHbelQuCSb3S8w8Fmq8fQmgjqacV+g /OTx+Wn9Z8Rel6BeLOCyrLXGkZzqAbiWvtoubAD0K0XAiLLdaNRvdP/2OOZd0sLGmKsZ ZI7OkpSa9saM4ZcOEr3+h6XA0BMBEMsKEdU/vDUg8WCYcJPcO2r77r78GPR4UBNf+4sK fV/Q== 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=Brk79K68Pth5JpZf/n4X97+hyNwde3ZvZaEoGdSbClA=; b=D7kPz58SBiESQOjMaanp0xtUT929WvxVHT2Mzhx0dK0EGSe95cbX+1XekSO/3eQ0+o dJnCEw5MkGpscqcQaMfteG60qC24oakp+fBZF9r3mCP8XIYJF++OeqJ0on3uvj0YeqHH p9Z9d9uyQpQSSoNWwAH7W7bM8hCgHjflPeIpcXUD2wXREjzfnyB1yLcnpFwaKDkqD2dG 8fevXJu149ukZiYNd222moyAuvO7qVk5bYfe0B+dlwqswbesrRFzk1vZjP3L8705L2+o UuD5auB/I3cLXLU8bm23vh6qdPkxvxxrUJZJjSAVK1wcQGTM1LVvkUMGe6kIgb9W4LO0 mJ6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dmnUeKZ9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs30-20020a1709072d1e00b007708617c995si2567212ejc.339.2022.09.21.03.21.52; Wed, 21 Sep 2022 03:22:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dmnUeKZ9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231825AbiIUJoH (ORCPT + 99 others); Wed, 21 Sep 2022 05:44:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231756AbiIUJnn (ORCPT ); Wed, 21 Sep 2022 05:43:43 -0400 Received: from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com [IPv6:2a00:1450:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8E8192F7A for ; Wed, 21 Sep 2022 02:43:30 -0700 (PDT) Received: by mail-wr1-x42c.google.com with SMTP id x18so2886828wrm.7 for ; Wed, 21 Sep 2022 02:43:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=Brk79K68Pth5JpZf/n4X97+hyNwde3ZvZaEoGdSbClA=; b=dmnUeKZ9VmxqZ4xOtAH5mntnS4VbRL2DzZYxE5575fTKF6+nYj2L7QRBc1ftzZgdC0 m3FMZ+nUww3dJIRmpri2+CGbUSCDjp0bYvR+isl+Z0/87QTRbJFjkWmBKWoEA1AU0bcc 8zqVahCPpTuOr31/OFo6+9xfmMb15G59QTPBY3LUpLvGStcZSWqGNv0MvjZT1Q01FDGd GRqRfOafPKf+7mCJklkGLoOXC7H3GCARMML+qyJiFwBoKnmKw06ldCN4rYshPY8YoSzu NeDlLn5ykBAOd9AdqMvs+uCqPztsmxrJpqFCewUDmPyJ5VoFCDEdOJwyoGAwlF+8IxAy iXlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=Brk79K68Pth5JpZf/n4X97+hyNwde3ZvZaEoGdSbClA=; b=OE94aC4wmtFdAp+Uuc7W4dGm/ftxZtQ4p1p8xjBmT8lMm0tyhbCYruPE7zVWPL+4hd zUC+aSCxZhBHu0Zks1rDiBGDIzt4CMg9MhAfE/udyz17BorR3FxHog/+X7AanlEZfdWB PJ1nHcHB/qsb7Y5OG/gJ155qni2DV9H0B1kLm7CKPReORA4NISxHQYJljN1zXkv3WTEC oDUdBg3wgHY/t96m9jr9EaRYjZYGV3447Rc3Gu1y4pyFzEEMpx7mVKK/NNtr9yDxJ933 EWgZiX+8Z4FLHp7vIJMzbkEwQMW61+Z4Ok++qKTSe0JF/ONkeBDUsBmY3+fZUWnVuA/z 2niA== X-Gm-Message-State: ACrzQf3vco/i5ILDFCIHPNnXedJm0RTo/m6IGKyhKot+ctRBj5jBVBIX 2+vL7qVGaoHIA3sABdoABuZo+A== X-Received: by 2002:adf:ed81:0:b0:226:a509:14b6 with SMTP id c1-20020adfed81000000b00226a50914b6mr16511433wro.150.1663753409132; Wed, 21 Sep 2022 02:43:29 -0700 (PDT) Received: from mai.. (146725694.box.freepro.com. [130.180.211.218]) by smtp.gmail.com with ESMTPSA id r123-20020a1c2b81000000b003a62052053csm2763917wmr.18.2022.09.21.02.43.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Sep 2022 02:43:28 -0700 (PDT) From: Daniel Lezcano To: daniel.lezcano@linaro.org, rafael@kernel.org Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, rui.zhang@intel.com, Amit Kucheria Subject: [PATCH v4 07/30] thermal/of: Remove unused functions Date: Wed, 21 Sep 2022 11:42:20 +0200 Message-Id: <20220921094244.606948-8-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220921094244.606948-1-daniel.lezcano@linaro.org> References: <20220921094244.606948-1-daniel.lezcano@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove the dead code: of_thermal_get_trip_points() Signed-off-by: Daniel Lezcano --- drivers/thermal/thermal_core.h | 7 ------- drivers/thermal/thermal_of.c | 17 ----------------- 2 files changed, 24 deletions(-) diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h index 1571917bd3c8..99a5d5281037 100644 --- a/drivers/thermal/thermal_core.h +++ b/drivers/thermal/thermal_core.h @@ -139,8 +139,6 @@ thermal_cooling_device_stats_update(struct thermal_cooling_device *cdev, #ifdef CONFIG_THERMAL_OF int of_thermal_get_ntrips(struct thermal_zone_device *); bool of_thermal_is_trip_valid(struct thermal_zone_device *, int); -const struct thermal_trip * -of_thermal_get_trip_points(struct thermal_zone_device *); #else static inline int of_thermal_get_ntrips(struct thermal_zone_device *tz) { @@ -151,11 +149,6 @@ static inline bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, { return false; } -static inline const struct thermal_trip * -of_thermal_get_trip_points(struct thermal_zone_device *tz) -{ - return NULL; -} #endif int thermal_zone_device_is_enabled(struct thermal_zone_device *tz); diff --git a/drivers/thermal/thermal_of.c b/drivers/thermal/thermal_of.c index 5cce83639085..2f533fc94917 100644 --- a/drivers/thermal/thermal_of.c +++ b/drivers/thermal/thermal_of.c @@ -54,23 +54,6 @@ bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, int trip) } EXPORT_SYMBOL_GPL(of_thermal_is_trip_valid); -/** - * of_thermal_get_trip_points - function to get access to a globally exported - * trip points - * - * @tz: pointer to a thermal zone - * - * This function provides a pointer to trip points table - * - * Return: pointer to trip points table, NULL otherwise - */ -const struct thermal_trip * -of_thermal_get_trip_points(struct thermal_zone_device *tz) -{ - return tz->trips; -} -EXPORT_SYMBOL_GPL(of_thermal_get_trip_points); - static int of_thermal_set_trip_hyst(struct thermal_zone_device *tz, int trip, int hyst) { -- 2.34.1