From patchwork Fri Aug 5 14:57:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 595761 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 86A58C00140 for ; Fri, 5 Aug 2022 14:59:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241072AbiHEO7N (ORCPT ); Fri, 5 Aug 2022 10:59:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240985AbiHEO6V (ORCPT ); Fri, 5 Aug 2022 10:58:21 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9079561B2D for ; Fri, 5 Aug 2022 07:58:09 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id q30so3503126wra.11 for ; Fri, 05 Aug 2022 07:58:09 -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; bh=Senc8bpNjiv83Sbz3Ca1I9tfQhgHt9JTuHoug+IBfXo=; b=moHlw3HcEE9qhKhd5l0MPTAYV+/77KzH8sE+lxJwQZPLGjNYnw9+84iUs/JMRtspEm wL/B82BFqVtsQ3vHsWZpXxEfzhVuOcJ39ScloM7igxYSqIgdhUGV64UMS2kg4a4jL6Xc 3zL2fAM4wxCIw85++FnO2R6rdSVXKSKPe6mRTZrDd9lzxwBhX9PPaZZABTJpApK5/sKE fc/1foX84bh1bypRT5s+qEqfj+JUbdj310vCmWQ/SmkCuOEK+Nv4TOKHZbh345GR7TlO LtOelXk+bgqB0Wf9vk+XjELNPU7s+yAHYsYapioIsFNfCMS2sO/OdlIIiNKd54ODN1Ab Wv3Q== 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; bh=Senc8bpNjiv83Sbz3Ca1I9tfQhgHt9JTuHoug+IBfXo=; b=p/fi+tXvqhLMt3AAbcLS+yqJYTNun1sux58Kx0lZXBgmn+wXNCIVK6UUgIYY4n7el1 CiE4ifunAALFeguTbkoYjIcFYHXJRFExkszih6Ut3leizMgpGcCAR4OOxr3wGSOehqMZ QfFN8erzXjkTINcKJoaJE4nv4svp1bq6IsyFEhgcM2/egW/2QCd0ctkjA54yS7HXFqoJ n1p0BWjnUrCd7R+rO2YUNeKIrZBP/iuHEhswWFnF3guDA3tFpaKqt/k5LrT60ivVqVKQ h34XkLWJ2eVnOfVN6btD2P8MO67+uAjkdufxV4nSTA1Y9bphPF60D/R3xFSYbbbQ9XzQ kgiw== X-Gm-Message-State: ACgBeo0RIQQOEYBgrMiIDWXpRR/v9Pnd0KGU6VX12OTjcUTx0pE03n3T ZSEbzRmqA3Wa13O9As60F992ag== X-Google-Smtp-Source: AA6agR5qzfQGvCOups81CoASboT5Zqvrk2j8BNnjcWA/4F99rnYL77DEDfDN1p+olZ69a65WVTGA2Q== X-Received: by 2002:a5d:6acb:0:b0:21e:efd7:c7be with SMTP id u11-20020a5d6acb000000b0021eefd7c7bemr4675463wrw.293.1659711487907; Fri, 05 Aug 2022 07:58:07 -0700 (PDT) Received: from mai.box.freepro.com ([2a05:6e02:1041:c10:aef0:8606:da6b:79ef]) by smtp.gmail.com with ESMTPSA id y1-20020adfd081000000b0022159d92004sm3102448wrh.82.2022.08.05.07.58.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Aug 2022 07:58:07 -0700 (PDT) From: Daniel Lezcano To: daniel.lezcano@linaro.org, rafael@kernel.org Cc: rui.zhang@intel.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Amit Kucheria Subject: [PATCH v1 17/26] thermal/core/of: Remove of_thermal_get_ntrips() Date: Fri, 5 Aug 2022 16:57:20 +0200 Message-Id: <20220805145729.2491611-18-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220805145729.2491611-1-daniel.lezcano@linaro.org> References: <20220805145729.2491611-1-daniel.lezcano@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Signed-off-by: Daniel Lezcano --- drivers/thermal/thermal_core.h | 5 ----- drivers/thermal/thermal_of.c | 16 ---------------- 2 files changed, 21 deletions(-) diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h index 04565746afbf..ed60b3be9082 100644 --- a/drivers/thermal/thermal_core.h +++ b/drivers/thermal/thermal_core.h @@ -143,13 +143,8 @@ thermal_cooling_device_stats_update(struct thermal_cooling_device *cdev, /* device tree support */ #ifdef CONFIG_THERMAL_OF -int of_thermal_get_ntrips(struct thermal_zone_device *); bool of_thermal_is_trip_valid(struct thermal_zone_device *, int); #else -static inline int of_thermal_get_ntrips(struct thermal_zone_device *tz) -{ - return 0; -} static inline bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, int trip) { diff --git a/drivers/thermal/thermal_of.c b/drivers/thermal/thermal_of.c index c675d6b72802..f935bc157f89 100644 --- a/drivers/thermal/thermal_of.c +++ b/drivers/thermal/thermal_of.c @@ -19,22 +19,6 @@ #include "thermal_core.h" -/** - * of_thermal_get_ntrips - function to export number of available trip - * points. - * @tz: pointer to a thermal zone - * - * This function is a globally visible wrapper to get number of trip points - * stored in the local struct __thermal_zone - * - * Return: number of available trip points, -ENODEV when data not available - */ -int of_thermal_get_ntrips(struct thermal_zone_device *tz) -{ - return tz->num_trips; -} -EXPORT_SYMBOL_GPL(of_thermal_get_ntrips); - /** * of_thermal_is_trip_valid - function to check if trip point is valid *