Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp996848rwb; Mon, 26 Sep 2022 08:22:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6S+AMk3FhunKfKax/U7pFbw+Z3elrQAIX2t1T3ZW/JsTyjCVZNbbCT+qte3PyeWhdNWf0o X-Received: by 2002:a17:906:3e01:b0:781:6462:700f with SMTP id k1-20020a1709063e0100b007816462700fmr18862388eji.307.1664205742167; Mon, 26 Sep 2022 08:22:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664205742; cv=none; d=google.com; s=arc-20160816; b=S5rq10b4MJTXYFgTYKKwH1JeP/oh7oU3pJyi3ltoJ8z5vcNEh7ZAqgBzPVw6J6slBb vpOeMacm/539Fkmxbmv917woqZJaEj/O6saOemPGd966IlwSS+EUiBcOO+XK/xbKQCCW 5uQivEL4C8tqcRrsLoNR4xk1OnUbdcb6Yn51/XxGLWT40J6YJc+GElBzzDUbjYZJdUod WXfo/ty3SQL+dNxAN2yRz7GtfqI1T0Yk1I05B8soi26Z4z2Bs3FCzuCWRzpBLxTWwa2n c0Siho5nZ91WfGAxMi009KUYZiuXxwsQjLAb6mmTfY8PRRuaReXsRNNn1rZ9GkIosE4f lLUw== 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=crQJQSZoczKrIegK5IuceoLZkv1wMF3jvS/SHAicAiM=; b=IuQutr1Q4mkQLZ1X9GsgccFVleffukp7rqfPU0a6j99jURGfDcZ49J3qysqXXZnHaj DfeQhbkUGjFuSNbP5BLrLVQHUop97o1kDbE3KjAQbXOs9cgLLM+XMZ0WMNX0C5VSdvWG ZdU/qfxOBMLa/ET93z4jqmVoVSg5ztrA65bsR/90DSwvl6+/BjtmaNT+QAqtg84Pnqv6 DXWeGcRLwGBUyCYit65AGwcJ091HaAOlQVXbjMsb0vygmcRdDEFVhfmBFV0GTyLrdjo6 7dAh5eD+1dgJsXdWd9TSMJ3LOuu0vrMkOLk+4f+Y/7ymwYmjmWLQpCfPIClAzclV8G+s JHOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=a9ZySv9e; 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 q5-20020a056402248500b004538b79c622si16898908eda.551.2022.09.26.08.21.56; Mon, 26 Sep 2022 08:22:22 -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=a9ZySv9e; 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 S236190AbiIZPUI (ORCPT + 99 others); Mon, 26 Sep 2022 11:20:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236302AbiIZPS5 (ORCPT ); Mon, 26 Sep 2022 11:18:57 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 800DA81B28 for ; Mon, 26 Sep 2022 07:06:26 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id bk15so2651092wrb.13 for ; Mon, 26 Sep 2022 07:06:26 -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=crQJQSZoczKrIegK5IuceoLZkv1wMF3jvS/SHAicAiM=; b=a9ZySv9e5P7H8Q1EIEly3YzEJl+KMEPT31kejbP4aANBigxpRxiuylzWaPPEvwLDJM IFkclcNjn463vjOjFKn0sMjtL8GAJ+BUOl1RWhIUQFZPOOs+d0JFti0DkDhLkEO5aUVm 5NbqRF0tCsHH6AiOVwGG8DZFPHE3X2SYh88CVDHNdBPw71nk14HqU5TI4HAfLgnVuW1F SVlZDl8pe/3cziRHUvzvnTR3IR6T08mnEUvFqxwHoexuyIb4UqwzOGoK6cBxxcHszjC3 FJEd7DypxT+cF1hSyVwfRYomN7GfrcAGai7SCa0d5nzost8+UB9RRPq0v/YRKUeCdkkk u5tQ== 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=crQJQSZoczKrIegK5IuceoLZkv1wMF3jvS/SHAicAiM=; b=N3Q/yJTR+DRQVt0fQhEy4fHQRPhjxmDngmsNaq2Z0Gvm1fpav3twp5ZVsoJLYwnOsj MC3awmsWm2WbFOZAMd8jNJZdzC2ttPSbprE0JV+J5THiOuekSPU9/T3YJi9tAFXdUQIM H+gXPcuLrc4HikQz7SoAS1Zew3bMMMaoMUPe4bNPqmN16LXCBCoNRvhQxFz82hIC2M5U /tzsqtZ63qWMk4KUSfv44TuPBqxErWNlPAaZSc7R90zB6GmdQgEbZ27UbSgDw3184G6z eu4NXkqtH34SueZeVk6qobKrfJWpXyVl3jUOyU99okt87+8PANnJH0PBFUTAHBXy+Wa/ pyHg== X-Gm-Message-State: ACrzQf18tz34+DF0y4fZPzSoBmUja7G5q3Dnjf49PKQi1mGl3OFlJ4e4 mhBsWCwV/fuI8zaNiBGq1oj4Zw== X-Received: by 2002:a5d:59a9:0:b0:22b:e6a:4796 with SMTP id p9-20020a5d59a9000000b0022b0e6a4796mr13463925wrr.47.1664201185873; Mon, 26 Sep 2022 07:06:25 -0700 (PDT) Received: from mai.. (146725694.box.freepro.com. [130.180.211.218]) by smtp.gmail.com with ESMTPSA id v3-20020adfebc3000000b0022adf321d22sm14310731wrn.92.2022.09.26.07.06.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Sep 2022 07:06:25 -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 v5 07/30] thermal/of: Remove unused functions Date: Mon, 26 Sep 2022 16:05:41 +0200 Message-Id: <20220926140604.4173723-8-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220926140604.4173723-1-daniel.lezcano@linaro.org> References: <20220926140604.4173723-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 879e91a48435..c5990a3fcf8a 100644 --- a/drivers/thermal/thermal_core.h +++ b/drivers/thermal/thermal_core.h @@ -141,8 +141,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) { @@ -153,11 +151,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