From mboxrd@z Thu Jan 1 00:00:00 1970 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 9319BC6FA83 for ; Tue, 27 Sep 2022 14:35:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233155AbiI0OfI (ORCPT ); Tue, 27 Sep 2022 10:35:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232984AbiI0Odp (ORCPT ); Tue, 27 Sep 2022 10:33:45 -0400 Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2B871B8C96 for ; Tue, 27 Sep 2022 07:33:28 -0700 (PDT) Received: by mail-wr1-x429.google.com with SMTP id n10so15262606wrw.12 for ; Tue, 27 Sep 2022 07:33:28 -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=v9HOYNemLB65v2s3X2Chh/1DsPPvYHZYg0+K/15aDgQ=; b=tsR8GsmwLnmO3r70RNL9IFXhZR+SIexipERds9VHUnVtiyqR7XimF/vgJS/prJE1Y0 TY4LbFLI9lWJG9h+qrAIJHNpZPlXfa8pCKaSCO71C6F5gQ0MNIWNF1uPKRh3tCmtSseF hlg5QSirbDj4VEiPPWCrWrs6Pl1Ek12M5woTL/u9/RyRXsA4ab3xb2IxNsWEVGOO4B1Y pRVbrz2Dw5dfxyQIjXRK8hZNpc4ZiwxqIy1FUi2glan2H8niajZASp5WFn0AmVwWfv27 WYlMZ32YT4RXEHrUAQy0kNuBtKth/0AmFPqdhugqfdEhJpoP7s0n7dZU7h23dH1umLRp Z7Sw== 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=v9HOYNemLB65v2s3X2Chh/1DsPPvYHZYg0+K/15aDgQ=; b=mex80su2lpg36DCu0gCdMLeMkh0UJp15GVyhVsMxDZcLQd0pdNFNrEnpTGdK7fWYzS Mzr6x2kpII5R2R3YPMSzqJD0ifUwjDN4h8liDSiji4bj9Djx66+BgRBdbKvk/+RgPbJ4 i7NDQ++3rzn5YYxAmyo9Lp2Qem195fNX6/4zj32Q/N/WuDKPT5/O/aEGw7mQwAgeezlk 8jV2fFcUkYgrHnefk6kopG25G2ZZyzcQkm6h+enRfv28gGo6RYEHbvaWKXP7qidlu6Sx o6DiLJtEyDsTVCzX4wCiLaDBWK8Dk+xfu0dYIX0jezA3sUlrQRg9igo+hevNQMEQxGM3 1UpA== X-Gm-Message-State: ACrzQf1QqFidcOmTdN+3DDfXDvTf6tQF0H/t2Qf3ZV2B0F57GnsyzRrN IssH6Q+kldBWxXuo+u97siKV2g== X-Google-Smtp-Source: AMsMyM76YygRE0bJCEdfLthDuY4ECo01wZ0wYB1wdJt3BLLjfwxgwsBjsYJoPLRBE4K+5VvQPHEGCw== X-Received: by 2002:adf:e5cf:0:b0:22a:c37c:5c6c with SMTP id a15-20020adfe5cf000000b0022ac37c5c6cmr17684812wrn.410.1664289206273; Tue, 27 Sep 2022 07:33:26 -0700 (PDT) Received: from mai.. (146725694.box.freepro.com. [130.180.211.218]) by smtp.gmail.com with ESMTPSA id l6-20020a05600c4f0600b003b4924493bfsm17518371wmq.9.2022.09.27.07.33.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Sep 2022 07:33: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, Eduardo Valentin , Keerthy , Amit Kucheria , linux-omap@vger.kernel.org (open list:TI BANDGAP AND THERMAL DRIVER) Subject: [PATCH v6 25/29] thermal/drivers/ti: Remove unused macros ti_thermal_get_trip_value() / ti_thermal_trip_is_valid() Date: Tue, 27 Sep 2022 16:32:35 +0200 Message-Id: <20220927143239.376737-26-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220927143239.376737-1-daniel.lezcano@linaro.org> References: <20220927143239.376737-1-daniel.lezcano@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The macros: ti_thermal_get_trip_value() ti_thermal_trip_is_valid() are unused. Remove them. Signed-off-by: Daniel Lezcano --- drivers/thermal/ti-soc-thermal/ti-thermal.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/drivers/thermal/ti-soc-thermal/ti-thermal.h b/drivers/thermal/ti-soc-thermal/ti-thermal.h index c388ecf31834..4fd2c20182d7 100644 --- a/drivers/thermal/ti-soc-thermal/ti-thermal.h +++ b/drivers/thermal/ti-soc-thermal/ti-thermal.h @@ -38,21 +38,6 @@ /* Update rates */ #define FAST_TEMP_MONITORING_RATE 250 -/* helper macros */ -/** - * ti_thermal_get_trip_value - returns trip temperature based on index - * @i: trip index - */ -#define ti_thermal_get_trip_value(i) \ - (OMAP_TRIP_HOT + ((i) * OMAP_TRIP_STEP)) - -/** - * ti_thermal_is_valid_trip - check for trip index - * @i: trip index - */ -#define ti_thermal_is_valid_trip(trip) \ - ((trip) >= 0 && (trip) < OMAP_TRIP_NUMBER) - #ifdef CONFIG_TI_THERMAL int ti_thermal_expose_sensor(struct ti_bandgap *bgp, int id, char *domain); int ti_thermal_remove_sensor(struct ti_bandgap *bgp, int id); -- 2.34.1